Notification doesn't fire the app ( when app is in closed state )

Comments

2 comments

  • Avatar
    Shmakov

    Hello,

    Generally, the most common way to solve this issue is to try to change the following line

    <activity android:name="com.arellomobile.android.push.PushHandlerActivity" />
    

    with

    <activity android:name="com.arellomobile.android.push.PushHandlerActivity" android:exported="true" />
    

    in the AndroidManifest.xml.

    If it doesn't help, please contact our support (http://pushwoosh.com/contact-us) for further investigation.

  • Avatar
    Brady Kelley

    Also, one other solution is to use a custom url scheme to open your app, and in the push notification use that url scheme. You will need to define an intent like this:

    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="yourappscheme" />
    </intent-filter>
    

    In this case any url that starts with "yourappscheme://" would open your app. Just make sure you use that scheme in the url parameter when you send off your push notification.

Please sign in to leave a comment.