When the app is close there isn't any notification that received. The only way the app can receive notification when it is open but when I clear the application like it show multitasking it doesn't receive notification at all.
This is a manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="school.jabjai.jabjaiapp">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:name=".urbanairship.NotificationApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme"
>
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id" />
<activity android:name=".SplashScreenActivity" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN"
android:theme="@style/Theme.Transparent"/>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".LoginActivity" android:screenOrientation="portrait" />
<activity android:name=".ShowWeekViewActivity" android:screenOrientation="portrait" />
<activity android:name=".MainActivity" android:screenOrientation="portrait" />
<activity android:name=".signup.SignupActivity" android:screenOrientation="portrait" />
<!--
Optional: This is an example of one of the many ways to handle deep
linking in the application. To use with your application, update the data
scheme to be unique for the application and modify ParseDeepLinkActivity.parseDeepLink
method to match your application's deep link parsing
-->
<activity
android:name=".urbanairship.ParseDeepLinkActivity"
android:theme="@android:style/Theme.NoDisplay"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<!-- Handles any vnd.jabjai.jabjaiapp://deeplink URI's -->
<data
android:host="deeplink"
android:scheme="vnd.jabjai.jabjaiapp" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
<!-- OPTIONAL, if you want to receive push, push opened and registration completed intents -->
<!-- Replace the receiver below with your package and class name -->
<receiver
android:name=".urbanairship.SampleAirshipReceiver"
android:enabled="true"
android:exported="false">
<intent-filter>
<action android:name="com.urbanairship.push.CHANNEL_UPDATED" />
<action android:name="com.urbanairship.push.OPENED" />
<action android:name="com.urbanairship.push.RECEIVED" />
<action android:name="com.urbanairship.push.DISMISSED" />
<category android:name="${applicationId}" />
</intent-filter>
</receiver>
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="@string/app_name"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
tools:replace="android:theme" />
<activity
android:name="com.facebook.CustomTabActivity"
android:exported="true">
<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="@string/fb_login_protocol_scheme" />
</intent-filter>
</activity>
<service android:name=".badger.BadgeIntentService"
android:exported="false"></service>
</application>
</manifest>
How can I fix this problem ?
Let's me know.
Thank you.
Comments
8 comments