notification

On Android 8.1 API 27 notification does not display

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I get Toast on Android 8.1 API 27: Developer warning for package "my_package_name" Failed to post notification on ... Logcat includes next strings: Notification: Use of stream types is deprecated for operations other than volume control W/Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case E/NotificationService: No Channel found for pkg=my_package_name The full information in the Toast and in Logcat can help in the localization this problem. 回答1: If

Cordova notification plugin failed installation (Cordova 3.6)

匿名 (未验证) 提交于 2019-12-03 08:28:06
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've updated a project from Cordova 3.4 to 3.6.3 and everything has fallen apart (as usual). But specifically, here, the org.apache.cordova.dialogs plugin is not working in runtime on ios. Cordova says the plugin is installed: $ cordova plugins ls org.apache.cordova.dialogs 0.2.9 "Notification" org.apache.cordova.vibration 0.3.10 "Vibration" In config.xml (the one outside of the platforms directory) I have added: <feature name="Notification"> <param name="ios-package" value="CDVNotification" /> </feature> When, in JavaScript, I try to create

Send push notification via REST API in Parse.com {“code”:115,“error”:“Missing the push data.”}

匿名 (未验证) 提交于 2019-12-03 07:36:14
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When i am trying to test the REST API provided by Parse.com with Fiddler, it return an error. please find the enclosed screen capture. I can send the push notification on parse.com. but not from REST API. Screenshot here: http://s24.postimg.org/stwspcyir/image.jpg http://s9.postimg.org/5r3guagh9/image.jpg === Follow Up === found the correct syntax of the JSON for push notification: {"data": { "alert": "test message", "sound": "", "badge": "Increment" },"channel":"abc"} but i found that if the channel is empty, the notification will not work,

Send push notifications from server with FCM

匿名 (未验证) 提交于 2019-12-03 07:36:14
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Recently I asked a question on sending push notifications using GCM: Send push notifications to Android . Now that there is FCM, I am wondering how different it would be from the server side development. Coding wise, are they the same? Where can I find example FCM codes showing sending push notifications from server to Android device? Do I need to download any JAR library for sending notifications to FCM using Java codes? The example codes in Send push notifications to Android shows sending push notifications using GCM and a server side GCM

iOS- Apple push notification resend from APNS

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: From Apple's document I understand that if the device is offline, the APNS holds the last notification and sends it to the device when the device is back online. Is there is any mechanism to avoid that resending? 回答1: The answer is NO Here is what apple says about it, If APNs attempts to deliver a notification but the device is offline, the notification is stored for a limited period of time, and delivered to the device when it becomes available. Only one recent notification for a particular application is stored. If multiple notifications

Notification with setGroupSummary(true) is not visible in Android N

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Tried to show 3 notification in cluster format. As per the doc, I added the setGroupSummary(true) property for the first notification.But in the result i have got only two notification. The notification which is added the GroupSummary property is not visible. NotificationCompat.Builder firstNotification = createNotification(context,"1.Message","Here you go 1"); firstNotification .setGroupSummary(true); firstNotification .setGroup("KEY_NOTIFICATION_GROUP"); NotificationCompat.Builder secondNotifi = createNotification(context,"2.Message","Here

Schedule notification using alarm manager in xamarin forms for android

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have created a dependencie to show the notifications In My DeviceDetails_Droid.cs I've set set alarm for 30 seconds The functionality for local notification works perfectly when app is active but when I killed the app (close app) the alarm receiver not getting called. public void ShowNotification(string message, string title) { Intent alarmIntent = new Intent(Forms.Context, typeof(AlarmReceiver)); alarmIntent.PutExtra ("message", message); alarmIntent.PutExtra ("title", title); PendingIntent pendingIntent = PendingIntent.GetBroadcast(Forms

How to keep track of notifications to know when to show a summary notification

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I want to emulate Gmail's app behavior regarding notification bar notifications, which complies with the recommended Android pattern: http://developer.android.com/design/patterns/notifications.html When the app is in background and I get a new e-mail I get a notification in the notification bar like this: Line 1 : Jane Smith Line 2 : Hi John , this is a sample message ... That is, a notification that is specific for a single message, and tapping it leads to a screen showing that specific e-mail. If I clear the notification either

Notification setAutoCancel(true) doesn&#039;t work

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to show a notification that has to be deleted when user tap on it. I'm using NotificationCompat class to build my notification and I call setAutoCancel(true) on my builder . This is the piece of code: NotificationCompat.Builder mBuilder= new NotificationCompat.Builder(this) .setSmallIcon(R.drawable.ic_launcher) .setContentTitle("title") .setAutoCancel(true) .setContentText("content"); NotificationManager notificationManager= (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.notify(0, mBuilder

How can I receive multiple notifications by using GCM without replacing the precedent one?

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on a project which receive notification from GCM server. I've got the registration ID from GCM server and i send it to my server application which save it in the database. My device receive the message but when I try to send another one, the precedent is replaced. I know that we've 2 types of message: Collapsible "send to sync" Non-Collapsible So without changing the name of the message, how can I get two message send at different time? UPDATE 1: When my device is offline (for example airport mode activated), I try to send for