0

Can I use the same java class in phonegap for Android and iOS ?

e.g. This example will be work on iOS too ?

Community
  • 1
  • 1

2 Answers2

1

You cannot use Java on iOS at all.

You'd have to create Objective-C code to do the same thing as your Java class, and if they provide the same interface to Phonegap, at least the Javascript code can be shared.

Thilo
  • 257,207
  • 101
  • 511
  • 656
0

Now java can be used on iOS, please check this link. Hope the samples will answer your question.

user1720500
  • 119
  • 1
  • 2
  • 9