Using the command native. won't work on my iPad

Hi,

Am fairly new to this but have my App up and running on my iPad. However if I use the native. command with anything, the app fails to open on the iPad.

For instance I added a Tweet button and used the native.showWebPopup, re-compile and copied the app over to my iPad and it won’t open. Comment out the line and it runs fine.

Any ideas ?

Dave [import]uid: 117617 topic_id: 21910 reply_id: 321910[/import]

did you include

require “native”

in your code? [import]uid: 108660 topic_id: 21910 reply_id: 87107[/import]

With your ipad plugged into to your mac and running Xcode’s organizer, you should be able to seen the phone’s console log. It may have a hint as to why you are crashing.

Native API doesn’t need a require to use so something else must be amis.
[import]uid: 19626 topic_id: 21910 reply_id: 87111[/import]

Am not sure what was causing it, maybe I was doing something wrong.

Anyway used this code -

http://developer.anscamobile.com/forum/2011/12/30/alternate-way-use-facebook-and-twitter-app

And it works fine on my iPad.

By the way that console in Xcode is very good, didn’t even know that was possible.

Dave [import]uid: 117617 topic_id: 21910 reply_id: 87277[/import]