Code Monkey home page Code Monkey logo

onesignal-android-sample's People

Contributors

iamwillshepherd avatar jmadler avatar lizarragadev avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

rakhithjk ellylos

onesignal-android-sample's Issues

Android Emulator problem with quick boot and stopped notifications

We discovered a problem on Android where push notifications stopped working so we fired up the emulator to see if we can troubleshoot it. The only scenario that we can create that regularly reproduces the problem is quick booting on an android emulator. It seems that once we quick boot on the emulator push notifications stop coming in until a cold boot is performed. I'm not certain what relation this would have to actual devices.

I took the sample app, installed and ran it, confirmed push notifications, stopped and restarted the emulator in quick boot and confirmed that no messages were received, cold booted the emulator and the messages came in almost instantly.

Any insight would be appreciated.

Regards

can not find User

error: cannot find symbol
OneSignal.User.pushSubscription.optIn();
^
symbol: variable User
location: class OneSignal

Bug : Observe Crash on OneSignal.initWithContext(getRepository().getContext(),oneSignalId) with Version 5.0.0

The latest (5.0.0) version of SDK crashes during initialization using OneSignal.initWithContext(Context, String) method
The attached crash log is extracted from my application

Steps :

  • Install Release 5.0.0 version
  • Initalize SDK using OneSignal.initWithContext(getRepository().getContext(),oneSignalId) in Application class
  • Observe crash

Process: com.simpletherapy.android.mhealth, PID: 18149
java.lang.RuntimeException: Unable to create application com.simpletherapy.android.SimpleTherapyApplication: java.lang.NullPointerException: null cannot be cast to non-null type com.amazon.device.iap.PurchasingListener
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6955)
at android.app.ActivityThread.access$1300(ActivityThread.java:260)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1972)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7989)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:635)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1065)
Caused by: java.lang.NullPointerException: null cannot be cast to non-null type com.amazon.device.iap.PurchasingListener
at com.onesignal.core.internal.purchases.impl.TrackAmazonPurchase.start(TrackAmazonPurchase.kt:83)
at com.onesignal.core.internal.startup.StartupService.start(StartupService.kt:16)
at com.onesignal.internal.OneSignalImp.initWithContext(OneSignalImp.kt:247)
at com.onesignal.OneSignal.initWithContext(OneSignal.kt:126)
at com.simpletherapy.android.SimpleTherapyApplication.onCreate(SimpleTherapyApplication.java:187)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6949)
at android.app.ActivityThread.access$1300(ActivityThread.java:260)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1972)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7989)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:635)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1065)

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.