private void printPushCampaign(PushCampaignInfo info) { Debug.Log("-------"); Debug.Log("PushCampaignInfo"); Debug.Log("campaignId: " + info.CampaignId); Debug.Log("name: " + info.Name); Debug.Log("creativeId: " + info.CreativeId); Debug.Log("creativeType: " + info.CreativeType); Debug.Log("message: " + info.Message); Debug.Log("soundFilename: " + info.SoundFilename); Debug.Log("attributes:"); foreach (KeyValuePair <string, string> kvp in info.Attributes) { Debug.Log(kvp.Key + "=" + kvp.Value); } }
AndroidJavaObject Localytics_OnLocalyticsWillShowPushNotification(AndroidJavaObject notificationBuilder, PushCampaignInfo campaign) { Debug.Log("WillShowPushNotification"); printPushCampaign(campaign); //notificationBuilder.Call<AndroidJavaObject> ("setContentTitle", "New Title"); return(notificationBuilder); }
bool Localytics_OnLocalyticsShouldShowPushNotification(PushCampaignInfo campaign) { Debug.Log("ShouldShowPushNotification"); printPushCampaign(campaign); return(true); }