Giter VIP home page Giter VIP logo

Comments (5)

jkasten2 avatar jkasten2 commented on May 26, 2024

@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.

jayinai avatar jayinai commented on May 26, 2024

@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.

Nightsd01 avatar Nightsd01 commented on May 26, 2024

@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.

juanfran1512 avatar juanfran1512 commented on May 26, 2024

@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.

jkasten2 avatar jkasten2 commented on May 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.