Push Notification Title Blank - Android Unity

0 votes

Here is my manifest file.  I assume the line, 

<?xml version="1.0" encoding="UTF-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" android:installLocation="preferExternal" android:theme="@android:style/Theme.NoTitleBar" android:versionCode="1" android:versionName="1.0">
  <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
  <permission android:name="com.GameEverything.TicTaco.permission.C2D_MESSAGE" android:protectionLevel="signature" />
  <application android:icon="@drawable/bearloadinghead" android:label="@string/app_name" android:debuggable="true">
    <meta-data android:name="com.google.android.gms.version" android:value="7571000" />
    <meta-data android:name="com.google.android.gms.games.APP_ID" android:value="\ 173600188015" />
    <meta-data android:name="com.google.android.gms.appstate.APP_ID" android:value="\ 173600188015" />
    <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="\ 0" />
    <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
    <meta-data android:name="onMessageOpen" android:value="com.GameEverything.TicTaco.MainActivity" />
    <intent-filter>
      <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
      <category android:name="com.GameEverything.TicTaco" />
    </intent-filter>
    <receiver android:name="com.onesignal.GcmBroadcastReceiver" />
    <receiver android:name="com.androidnative.features.notifications.LocalNotificationReceiver" />
    <receiver android:name="com.androidnative.gcm.GcmBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
      <intent-filter>
        <action android:name="com.google.android.c2dm.intent.RECEIVE" />
        <category android:name="com.GameEverything.TicTaco" />
      </intent-filter>
    </receiver>
    <service android:name="com.shephertz.app42.push.plugin.App42GCMService" />
    <meta-data android:name="push_title" android:value="TicTaco"/>
    <service android:name="com.androidnative.gcm.GcmIntentService" />
    <activity android:name="com.unity3d.player.UnityPlayerNativeActivity" android:label="@string/app_name">
      <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
      <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity>
    <activity android:name="com.androidnative.AndroidNativeProxy" android:launchMode="singleTask" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:theme="@android:style/Theme.Translucent.NoTitleBar" />
    <activity android:name="com.androidnative.billing.core.AN_BillingProxyActivity" android:launchMode="singleTask" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:theme="@android:style/Theme.Translucent.NoTitleBar" />
    <activity android:name="com.androidnative.gms.core.GooglePlaySupportActivity" android:launchMode="singleTask" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:theme="@android:style/Theme.Translucent.NoTitleBar" />
    <activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
    <activity android:name="com.androidnative.features.social.common.SocialProxyActivity" android:launchMode="singleTask" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:theme="@android:style/Theme.Translucent.NoTitleBar">
      <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="oauth" android:host="com.GameEverything.TicTaco" />
      </intent-filter>
    </activity>
    <activity android:name="com.facebook.LoginActivity" android:label="@string/app_name" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:configChanges="keyboardHidden|orientation" />
    <activity android:name="com.facebook.unity.FBUnityLoginActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" />
    <activity android:name="com.facebook.unity.FBUnityDeepLinkingActivity" android:exported="true" />
    <activity android:name="com.facebook.unity.FBUnityDialogsActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" />
  </application>
  <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  <uses-permission android:name="com.android.vending.BILLING" />
  <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
  <uses-permission android:name="com.GameEverything.TicTaco.permission.C2D_MESSAGE" />
  <uses-permission android:name="android.permission.WAKE_LOCK" />
  <uses-permission android:name="android.permission.VIBRATE" />
  <uses-permission android:name="android.permission.GET_TASKS" />
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  <uses-permission android:name="android.permission.GET_ACCOUNTS" />
  <uses-permission android:name="com.android.vending.CHECK_LICENSE" />
  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
  <uses-permission android:name="com.GameEverything.TicTaco.permission.C2D_MESSAGE" />
  <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
  <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
</manifest>

Thanks in advance for your help!

asked Jan 8, 2016 in App42 Cloud API-BaaS by null (23 points)

1 Answer

+1 vote

Hi,

After going through with AndroidManifest.xml file I found that you have specified TicTaco as Push title, that should work.

But you I have not found any Activity com.GameEverything.TicTaco.MainActivity in activity Tag. Which is mentioned in

 <meta-data android:name="onMessageOpen" android:value="com.GameEverything.TicTaco.MainActivity" />

Please specify valid Activity name here.

Ley me know if more queries are concern.

 

Thanks

Vishnu Garg

 

answered Jan 9, 2016 by Vishnu Garg (674 points)
Thanks, I was able to get the icon back by reverting to an older version of the manifest file, but of course now the circular 'i' icon is back, so that's my new issue.
Please don't change the app42PushService.jar file that contains the code of showing app icon instead of 'i' icon.
I haven't modified the source code for the app42PushService.jar file yet.  Should I?
No, You need not to modify the source code I have already done that.
Thanks!  Where can I download the updated app42PushService.jar file then?
That worked!  I've been trying to fix this for weeks.  Great job :)
Your always welcome to ShepHertz.
Let me know if more queries are concern.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...