-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toast not shown in Honor 8XS #120
Comments
Remove this line from your index.html file meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;"> and add below one.. |
Try subscribe it with empty even: |
I do have Honor V10 and i didn/t tried with .subscribe() , mine worked by doing above method. |
It seems that the toast notifications do not show on Android 8 when using the latest versions of the plugin. I removed the latest plugin from my project and went back to 2.5.2, and the toasts are working on at least Android 8.0 (e.g. Huawei P Smart) and Android 8.1 (Honor 7S).
|
@NorthFred It no works in Honor 8X,Android 8.1.0 |
@DGGohil I had tried with .subscribe() , but it no worked by doing above method. |
PM me your index.html. |
Whether or not there is a sentence above. It doesn't work. meta charset="utf-8" meta http-equiv="Content-Security-Policy" content="default-src * gap: ws: https://ssl.gstatic.com;style-src * 'unsafe-inline' 'self' data: blob:;script-src * 'unsafe-inline' 'unsafe-eval' data: blob:;img-src * data: 'unsafe-inline' 'self' content:;media-src mediastream;" |
I also encountered this problem, and my device is Xiaomi 8, Android 8.1 |
I also integrated cordova-plugin-toastyplugin to my project, it works for me.if (window.cordova&&window.plugins.toastyPlugin) { |
Are you talking about ToastyPlugin? I installed it, but I saw that the source code inside it is not very reliable, actually there is alert |
it work for me: |
Published 2.7.1 which removes the problematic code entirely. |
Expected behaviour
show Toast
Actual behaviour
Toast not shown in Honor 8X
I'm seeing this behaviour on
Hardware models
Honor 8X
Android 8.1.0
OS versions
ExCordova CLI: 6.5.0
Ionic Framework Version: 1.2.4
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
OS: Windows 7 SP1
Node Version: v10.8.0
I'm not a dummy, so I've checked these
deviceready
to fire.window.onerror
catches nothing).The text was updated successfully, but these errors were encountered: