Comments (5)
@hamdanihamza Are you seeing this issue on Android or iOS? Can you provide the crash log so we can look into this?
Android - Logcat log:
https://documentation.onesignal.com/docs/troubleshooting-android#section-how-to-get-a-crash-or-error-log-from-an-android-device
iOS - Xcode crash log:
https://documentation.onesignal.com/docs/troubleshooting-ios#section-how-to-get-a-crash-log-from-an-ios-device
I please list all your plugins in your project to help debug the issue.
ionic cordova plugin list
from onesignal-ionic-sample.
@jkasten2 I think s/he is on Android. I am on iOS and face the same issue. Here is the result after running ionic cordova plugin list
as you suggested:
cordova-plugin-console 1.1.0 "Console"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-splashscreen 4.1.0 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
ionic-plugin-keyboard 2.2.1 "Keyboard"
onesignal-cordova-plugin 2.4.1 "OneSignal Push Notifications"
from onesignal-ionic-sample.
@shuaiw I don’t think any of those plugins would cause an incompatibility issue, however there are a few things that could cause this issue.
I would suggest making sure your app is actually requesting the user’s permission to allow push notification. If it is, you should also enable verbose logging by calling OneSignal.setLogLevel(6, 0)
and make sure you are seeing the playerId
(the OneSignal user ID) get set.
You’ll also want to make sure you don’t have a mismatched Bundle ID error. In your Xcode project settings you should see a bundle ID (like com.onesignal.example
) and make sure it matches what you see in OneSignal iOS platform settings.
from onesignal-ionic-sample.
@Nightsd01 i have the same problem that @shuaiw but i'm in android, could you explain how to do "requesting the user’s permission to allow push notification. " i follow sou much tutorials and i'm starting to get desperated, i spend more then a week traying to do this onesignal push notification,
sorry for my english i'm from venezuela.
from onesignal-ionic-sample.
@juanfran1512 On Android there isn't a notification prompt, users are opted in automatically. I recommend checking the All Users page on the OneSignal dashboard to see if your device was subscribed. If there was a subscription issue it will show here.
If not is recommend following the logcat instructions above and ask OneSignal support if you need help looking into the log.
from onesignal-ionic-sample.
Related Issues (14)
- User doesn't register after loading app HOT 3
- error starting HOT 4
- How to turn on screen? HOT 4
- ionic_v1 branch not detected with ionic cli 5.2.1 HOT 1
- Example does not build with Ionic 4 HOT 2
- has no exported member 'Renderer'. Did you mean 'Renderer2' HOT 4
- Example with ionic 5 and Capacitor HOT 1
- Example not working HOT 5
- Ionic 2: OneSignalPush.java:251: error: unreported exception JSONException; must be caught or declared to be thrown HOT 3
- Add to Ionic App enable/disable notification
- window.plugins.OneSignal doesn't have init function, but has startInit. HOT 1
- Info Messages HOT 4
- Error while build apk on new version of one-signal HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onesignal-ionic-sample.