Hello, When the game is running in the background everything works just fine but when it is closed touching the notification doesn't open the game. I am using unity sdk. I changed the manifest in the way explained in [https://community.pushwoosh.com/questions/247/notification-doesnt-fire-the-app-when-app-is-in-closed-state][1]

but again to no avail.

when I touch the notification it shows my device's main page as if nothing has happened. but when i check my open apps I find that a new app has been added with my app's name but it is showing my desktop as if the wrong app has been set. I believe there is still something wrong with my manifest. please help me.

here is the manifest :

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.zanagames.BazaarIAB" android:installlocation="preferExternal" android:theme="@android:style/Theme.NoTitleBar" android:versioncode="1" android:versionname="0.1"> <supports-screens android:smallscreens="true" android:normalscreens="true" android:largescreens="true" android:xlargescreens="true" android:anydensity="true"/>

<application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="true"> <meta-data android:name="PW_APPID" android:value="D3A96-C7E42"/> <meta-data android:name="PW_PROJECT_ID" android:value="A972498640800"/> <meta-data android:name="PW_BROADCAST_PUSH" android:value="false"/> <activity android:name="com.unity3d.player.UnityPlayerProxyActivity" android:launchmode="singleTask" android:label="@string/app_name" android:configchanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:screenorientation="portrait"> <intent-filter> <action android:name="com.zanagames.BazaarIAB.MESSAGE"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </activity> <activity android:name="com.arellomobile.android.push.PushWebview"/> <activity android:name="com.arellomobile.android.push.MessageActivity"/> <activity android:name="com.arellomobile.android.push.PushHandlerActivity" android:exported="true"/> <receiver android:name="com.google.android.gcm.GCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND"> <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE"/> <action android:name="com.google.android.c2dm.intent.REGISTRATION"/> <category android:name="com.zanagames.BazaarIAB"/> </intent-filter> </receiver> <service android:name="com.arellomobile.android.push.PushGCMIntentService"/> <receiver android:name="com.arellomobile.android.push.AlarmReceiver"></receiver>

<activity android:name="com.zanagames.BazaarIAB.IABPlugin"
          android:launchMode="singleTask"
          android:label="@string/app_name"
          android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
  <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
  </intent-filter>
</activity>
    <activity android:name="com.unity3d.player.UnityPlayerNativeActivity"
          android:launchMode="singleTask"
          android:label="@string/app_name"
          android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
  <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
</activity>

</application> <uses-feature android:glesversion="0x00020000"/> <uses-sdk android:minsdkversion="8" android:targetsdkversion="17"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.GET_ACCOUNTS"/> <uses-permission android:name="android.permission.WAKE_LOCK"/> <uses-permission android:name="com.farsitel.bazaar.permission.PAY_THROUGH_BAZAAR"/> <permission android:name="com.zanagames.BazaarIAB.permission.C2D_MESSAGE" android:protectionlevel="signature"/> <uses-permission android:name="com.zanagames.BazaarIAB.permission.C2D_MESSAGE"/> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/> </manifest>

[1]: I am using unity sdk. I changed the manifest in the way explained in https://community.pushwoosh.com/questions/247/notification-doesnt-fire-the-app-when-app-is-in-closed-state but again to no avail. when I touch it it show my main page as if nothing has happened. but when i check my open apps I find that a new app has been added with my apps name but it is showing my desktop as if the wrong app has been set. I believe there is still something wrong with my manifest. please help me. here is the manifest : <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.zanagames.BazaarIAB" android:installlocation="preferExternal" android:theme="@android:style/Theme.NoTitleBar" android:versioncode="1" android:versionname="0.1"> <supports-screens android:smallscreens="true" android:normalscreens="true" android:largescreens="true" android:xlargescreens="true" android:anydensity="true"/> <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="true"> <meta-data android:name="PW_APPID" android:value="D3A96-C7E42"/> <meta-data android:name="PW_PROJECT_ID" android:value="A972498640800"/> <meta-data android:name="PW_BROADCAST_PUSH" android:value="false"/> <activity android:name="com.unity3d.player.UnityPlayerProxyActivity" android:launchmode="singleTask" android:label="@string/app_name" android:configchanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:screenorientation="portrait"> <intent-filter> <action android:name="com.zanagames.BazaarIAB.MESSAGE"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </activity> <activity android:name="com.arellomobile.android.push.PushWebview"/> <activity android:name="com.arellomobile.android.push.MessageActivity"/> <activity android:name="com.arellomobile.android.push.PushHandlerActivity" android:exported="true"/> <receiver android:name="com.google.android.gcm.GCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND"> <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE"/> <action android:name="com.google.android.c2dm.intent.REGISTRATION"/> <category android:name="com.zanagames.BazaarIAB"/> </intent-filter> </receiver> <service android:name="com.arellomobile.android.push.PushGCMIntentService"/> <receiver android:name="com.arellomobile.android.push.AlarmReceiver"></receiver> <activity android:name="com.zanagames.BazaarIAB.IABPlugin" android:launchmode="singleTask" android:label="@string/app_name" android:configchanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> <activity android:name="com.unity3d.player.UnityPlayerNativeActivity" android:launchmode="singleTask" android:label="@string/app_name" android:configchanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"> <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false"/> </activity> </application> <uses-feature android:glesversion="0x00020000"/> <uses-sdk android:minsdkversion="8" android:targetsdkversion="17"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.GET_ACCOUNTS"/> <uses-permission android:name="android.permission.WAKE_LOCK"/> <uses-permission android:name="com.farsitel.bazaar.permission.PAY_THROUGH_BAZAAR"/> <permission android:name="com.zanagames.BazaarIAB.permission.C2D_MESSAGE" android:protectionlevel="signature"/> <uses-permission android:name="com.zanagames.BazaarIAB.permission.C2D_MESSAGE"/> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/> </manifest>

asked 26 Jun '14, 12:59
javid183's gravatar image

javid183
113

edited 26 Jun '14, 13:02

Any luck with this issue? I'm running into a similar problem though not as consistently. On some phones the app opens fine when the notification is touched but on other phones touching it will try to start the app and but it force quits back to the Android Home screen.

permanent link
answered 01 Aug '14, 23:56
Timberoth's gravatar image

Timberoth
112

My problem was that I had marked another activity with <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> It should be in the same activity which receives message. Also I was using another PackageName(Bundle Identifier) in unity player setting.

permanent link
answered 02 Aug '14, 11:48
javid183's gravatar image

javid183
113

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×446
×111
×88
×11

question asked: 26 Jun '14, 12:59

question was seen: 2,078 times

last updated: 02 Aug '14, 11:48