brain56
brain56

Reputation: 2711

Can I use the Java library of the Telegram API source in PhoneGap to develop for both Android and iOS?

I'm currently developing an app using PhoneGap. This app will make use of the Telegram API to provide a messaging system. Should I just use the Java library or do I also need to make use of the Telegram for iOS source?

Upvotes: 3

Views: 1237

Answers (2)

Li Bing
Li Bing

Reputation: 1

You may want to put the telegram web UI (https://github.com/zhukov/webogram) into phonegap or cordova.

Upvotes: -1

ivansabik
ivansabik

Reputation: 613

If you develop Phonegap you must implement all client-side functionalities with Javascript. Also keep in mind that since you will be making request to Telegrams domain, you have to make cross-domain requests so you could look at an example using Twitter here: http://samcroft.co.uk/2010/loading-data-into-a-phonegap-app/

Or if you prefer another aproach using Phonegap, whitelist the domain, info here: http://docs.phonegap.com/en/1.9.0/guide_whitelist_index.md.htmle

Upvotes: 2

Related Questions