- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Olá, estou com a seguinte dúvida.
No app que desenvolvi, geramos alguns avisos em forma de pop up/alerts. O Alert funciona ok, mas no Iphone ele aparece a informação index.html no "cabeçalho". Como posso resolver esse problema??
Agradeço desde já.
Segue imagens do erro.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
This is the JavaScript alert system object, you can't change it.
Depending on the framework you are using, they may have its own alerts. For example, in App Framework:
$.afui.popup('Your message');
More info here:
https://app-framework-software.intel.com/api.php#$_afui_popup
Regards,
Diego
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Diego, thanks for the support. I'll try to change my javascript.
Regards.
Rodrigo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I have the following question.
In the app develops, we generate some warnings in the form of pop up / alerts. Alert works ok, but it appears the iPhone index.html information in the "header". How can I solve this problem ??
Thanks in advance.
The following bug pictures.
Rodrigo -- you can use the Cordova core plugin called "notifications" which allows you to create a custom alert that uses native formatting. See the docs here > https://www.npmjs.com/package/cordova-plugin-dialogs. BTW, be careful with the builtin alert mechanism, especially on iOS, it can interfere with some operations and cause what appears to be a freeze of your app because the builtin alert is a blocking operation. For example, if you use an alert alongside the barcode plugin this can happen, because of a conflict between multiple views that cause the alert to be hidden, but an "Okay" is required to release the alert, which is blocking the UI. Also, there are lots of toaster JavaScript libraries out there that provide useful and customizable notifications.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Paul, thank you very much for the tip.
Regards
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page