Page 3 of 5

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

Posted: Tue Mar 25, 2014 12:36 pm
by GodSpeed JP1

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.


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

Posted: Tue Mar 25, 2014 5:49 pm
by GodSpeed JP1

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


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

Posted: Wed Mar 26, 2014 12:16 pm
by Maryna Brodina

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.


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

Posted: Wed Mar 26, 2014 1:02 pm
by GodSpeed JP1

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?


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

Posted: Wed Mar 26, 2014 2:38 pm
by GodSpeed JP1

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.


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

Posted: Wed Mar 26, 2014 3:21 pm
by Maryna Brodina

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


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

Posted: Wed Mar 26, 2014 3:40 pm
by GodSpeed JP1

OK, Thank you.


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

Posted: Wed Mar 26, 2014 4:52 pm
by GodSpeed JP1

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.


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

Posted: Wed Mar 26, 2014 5:23 pm
by Nikita

Hello,

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


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

Posted: Wed Mar 26, 2014 5:32 pm
by GodSpeed JP1

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