Pushwoosh update for unity

Comments

2 comments

  • Avatar
    Alexander Belyaev
    0
    Comment actions Permalink

    Hey Sara!

    Could you please clarify, what do you mean by "after sending a notification with another device."? 

    Generally, according to the integration docs, when the device received a push notification, the following entry should appear in the log: "Received push notification:" + respective payload of the received push.

    Take a look at point 2 of the Unity Integration guide:

    void OnPushNotificationsReceived(string payload)
    {
    // handle here
    Debug.Log("Received push notificaiton: \n" + payload);
    }

    https://www.pushwoosh.com/docs/unity-plugin

    Am I understand you correctly, that a push notification appears on the device screen? If so, please check, perhaps the Pushwoosh LOG_LEVEL has been changed? 

     

  • Avatar
    Sara RaeisMohammadi
    0
    Comment actions Permalink

    Thanks for replying Alexander. My means that I run some part of my code that sends the notification message. 
    I see my notification message on the Pushwoosh dashboard on debugging mode. But my app never print "Debug.Log("Received push notification: \n" + payload);" this log. Are you sure that we must see it?

    I even add GCM parts receiver and permission to my manifest (Which was on the old Androidmanifest of the Pushwoosh). I Just wondering why the manifest is like the following and receiver parts are removed:


    <application>
    <!-- unity-activities -->
    <activity android:name='com.unity3d.player.UnityPlayerActivity'
    android:configChanges='fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen'
    android:launchMode='singleTask' android:screenOrientation='portrait'>
    <intent-filter>
    <action android:name='android.intent.action.MAIN' />
    <category android:name='android.intent.category.LAUNCHER' />
    <action android:name='PACKAGE_NAME.MESSAGE' />
    <category android:name='android.intent.category.DEFAULT' />
    </intent-filter>
    </activity>
    <activity android:name='com.unity3d.player.UnityPlayerNativeActivity'
    android:configChanges='fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen'
    android:launchMode='singleTask' android:screenOrientation='portrait'>
    <meta-data android:name='android.app.lib_name' android:value='unity' />
    <meta-data android:name='unityplayer.ForwardNativeEventsToDalvik'
    android:value='false' />
    </activity>

    </application>

    The log level is "Pushwoosh: Log level: DEBUG". I see all the registration logs. Could you help me to find why I didn't get the Pushwoosh messages?

     

Please sign in to leave a comment.