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
  • 250,062
  • 96
  • 490
  • 643
0

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

user1720500
  • 129
  • 1
  • 2
  • 9