GodSpeed JP1
Posts: 0
Joined: Thu Feb 27, 2014 1:23 pm

Navigator.notification.alert not work correctly on real device and xcode simulater.

I tested more cases today on a real device(iOS7.0.6).But bad results.
Not only the Navigator.notification.alert can not popup.The camera native device features(Phonegap) also can not be used,because the same reason.--Confirm can't popup.
So I try to use the multi-page option ,but multi-page template have the same problem -- alert ,confirm can not popup.
I can use javascript alert instead of Navigator.notification.alert,but how to make the camera access confirm popup?
Please help me.I don't know what to do.

GodSpeed JP1
Posts: 0
Joined: Thu Feb 27, 2014 1:23 pm

Navigator.notification.alert not work correctly on real device and xcode simulater.

Reproduc the same issue on iPad2(iOS7.0.4).

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Navigator.notification.alert not work correctly on real device and xcode simulater.

Hello!

If you make BBSCreateComment page start page - it works. Looks like you do something that breaks app work on previous screens. Please check that.
You can also try 1.2 libraries version - it works there.

GodSpeed JP1
Posts: 0
Joined: Thu Feb 27, 2014 1:23 pm

Navigator.notification.alert not work correctly on real device and xcode simulater.

Hi Maryna, Thanks for your replay, I will change to 1.2 to test my app.
And I also find something strange today.
I debug my app on xcode simulator, I check the log.When I navigate page to BBSCreateComment the console said:
2014-03-26 19:39:43.851 GF[6756:60b] Failed to load webpage with error: The operation couldn’t be completed. (NSURLErrorDomain error -999.)
I researched the error and it means "A Web Kit framework delegate will receive this error when it performs a cancel operation on a loading resource. Note that an NSURLConnection or NSURLDownload delegate will not receive this error if the download is canceled."
But I have not used the load event on this page.
Is this a error can be ignored?

GodSpeed JP1
Posts: 0
Joined: Thu Feb 27, 2014 1:23 pm

Navigator.notification.alert not work correctly on real device and xcode simulater.

Hi Maryna, I test my app use lib v1.2, and it works.So, it means my logic have some problems can not work with lib v2.0 well.I will try to make a thorough investigation of it.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Navigator.notification.alert not work correctly on real device and xcode simulater.

NSURLErrorDomain is standard error for iOS webkit, you can ignore it.

GodSpeed JP1
Posts: 0
Joined: Thu Feb 27, 2014 1:23 pm

Navigator.notification.alert not work correctly on real device and xcode simulater.

Hello Maryna, Hello everyone ,I think I found the cause.
The cause of all problems in my app is the YouTube component.
I have a hiden youtube component on the detail page.
When I deleted it, all problems gone.
When I tested the youtube components on PC browser,it caused endless loop javascript errors.But these errors didnot affect the base function, so I ignored it.
These errors make my alert cannot popup but the phonegap alert only works on a real device,and you can't find the javascript errors on real device.
So find the cause take a really long time.
Thank you everyone.
And please fix the youtube components bug.

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Navigator.notification.alert not work correctly on real device and xcode simulater.

Hello,

We're glad for you. Thanks for feedback. Could you provide a screenshot of the errors, that youtube-component throws?

GodSpeed JP1
Posts: 0
Joined: Thu Feb 27, 2014 1:23 pm

Navigator.notification.alert not work correctly on real device and xcode simulater.

Hello Nikita,here is the screen shot. the number of errors not static,it count up with a hight speed, about plus 3 one second.
Any other way to show dynimic youtube contents except to use youtube component?
Image

Return to “Issues”