notifications

Notifications not running when is app is swiped from recents (Samsung S9 running API 27)

北慕城南 提交于 2020-01-16 19:08:46
问题 I've looked through countless threads regarding the same topic, but have not found any working answers. My app has min API level 21, target API level 29, and I'm testing on a Samsung S9 with Android Oreo (8.1, API 27). None of the methods for pushing notifications (that I've found) seem to be working when the application is swiped away from recents. In all the methods I tried, all notifications are working when the application is left on. What I've tried: Scheduling notifications with

Notifications not running when is app is swiped from recents (Samsung S9 running API 27)

我是研究僧i 提交于 2020-01-16 19:07:12
问题 I've looked through countless threads regarding the same topic, but have not found any working answers. My app has min API level 21, target API level 29, and I'm testing on a Samsung S9 with Android Oreo (8.1, API 27). None of the methods for pushing notifications (that I've found) seem to be working when the application is swiped away from recents. In all the methods I tried, all notifications are working when the application is left on. What I've tried: Scheduling notifications with

IONIC 3 - Open app on notification received

无人久伴 提交于 2020-01-16 17:08:12
问题 My app's notification is working fine, receiving notifications on background and foreground, using firebase-native plugin .Now, my client needs the app open when the notification is received without any user iteration. I've found was this, but has no correct answer for me. On my debug, I've realize that the notification is received via broadcast by FirebaseInstanceIdReceiver. So, I've tried: Modify the plugins/cordova-plugin-firebase-lib/plugin.xml This compile but nothing happens. Modify the

How can I send a notification from inside the onProviderDisabled method of a LocationListener

末鹿安然 提交于 2020-01-16 14:08:13
问题 How can I send a notification from inside the onProviderDisabled method of a LocationListener? So far I have been using: Toast.makeText(mainmenu, "GPS Location providers are disabled... blah blah", Toast.LENGTH_LONG).show();}}); but that entails using a static mainmenu variable stored when the mainmenu class is first instantiated - I gather doing it that is a bad idea, in case the mainmenu object gets removed from memory I guess - so I think I should be using notifications. I guess I need to

iOS 8. Change app badge number without any notifications

回眸只為那壹抹淺笑 提交于 2020-01-16 10:49:08
问题 In my app I need to set badge onto the app icon and set numbers for this badge. The problem is that I need to register user notification settings like this: if ([[UIApplication sharedApplication] respondsToSelector:@selector(registerUserNotificationSettings:)]) { [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge categories:nil]]; } in order to make it work on iOS8. If I run this code then on start

Silent notification callback method called only when app is in background

回眸只為那壹抹淺笑 提交于 2020-01-16 02:49:05
问题 I registered remote notification and its working absolutely fine. Now I am implementing silent notification . For that, I enabled background remote notification and App downloads content from the network. and sending, {"aps": {"content-available": 1}} its calling the below callback method but only when app is in background: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result)

OracleCommand execution blocks if has OracleDependency

我的未来我决定 提交于 2020-01-15 09:51:28
问题 I have the following code: OracleConnection conn = new OracleConnection(connString); OracleCommand command = new OracleCommand("select * from testtable", conn); conn.Open(); OracleDependency.Port = 2010; OracleDependency dependency = new OracleDependency(command); command.AddRowid = true; command.Notification.IsNotifiedOnce = false; dependency.OnChange += new OnChangeEventHandler(dependency_OnChange); command.CommandTimeout = 1000; DataTable t = new DataTable(); OracleDataAdapter adapter =

Notification popup doesn't appear in chrome

 ̄綄美尐妖づ 提交于 2020-01-15 09:22:11
问题 I am trying to do a gmail similar type desktop notification . I am facing the difficulty to change the notification permission in chrome. The permission always shows denied in console if i use window.Notification.permission . If i manually change the permission in google chrome settings -> privacy -> content settings -> Notifications as "Allow all sites to show desktop notifications" from "Do not allow any site to show desktop notifications" . Now i am able to get desktop notification

Send Mac OS X Notification Center message via JavaScript - 10.10 Yosemite

限于喜欢 提交于 2020-01-15 07:58:10
问题 How can a message be sent to the Mac OS X Notification Center using the JavaScript for Automation functionality that was introduced in 10.10 Yosemite? 回答1: Messages can be sent to Notification Center via Automator and Script Editor JavaScripts by using the includeStandardAdditions method from the core library. For example: app = Application.currentApplication() app.includeStandardAdditions = true app.displayNotification('Basic message') The Script Editor application has documentation that

Windows Toast Notification not showing in Action Center

╄→гoц情女王★ 提交于 2020-01-15 06:38:51
问题 Need some help. I got this script working in power shell for toast notifications in Win 10 but the notification just wouldn't show in Action Center. Any help would be appreciated. param( [String] $Title ) [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null [Windows.UI.Notifications.ToastNotification, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null [Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom