notifications

Is it possible to put a foreground service notification in a notification channel with IMPORTANCE_MIN?

拜拜、爱过 提交于 2020-02-21 09:55:18
问题 I am currently working on transitioning an application to Android O, and I am currently working on notification channels. I have made different channels with different importance levels and since the application has a foreground service that has to run at all times until we transition to a new architecture (more push oriented), I thought about putting that notification in a channel that has its importance set as IMPORTANCE_MIN , so that it is there, but it doesn't bother the user, and doesn't

IOS Text below Status Bar while app is in Background

♀尐吖头ヾ 提交于 2020-02-16 05:40:11
问题 I'm trying to figure out how to implement a banner like notification with text below the statusbar while an app is in the background. Much like Runkeeper, while active and app is in background: Is it a Banner? All I can find for that is banners for ads while the app is in the foreground. Do I need to customize the StatusBar and add an extra view for the StatusBar with a custom text to appear? Is it a customized UILocalNotification to be continuously shown? 回答1: This banner is displayed by iOS

JavaScript Notification API requireInteraction

六眼飞鱼酱① 提交于 2020-02-04 05:20:11
问题 Trying to understand how this feature works. MDN article says: The requireInteraction read-only property of the Notification interface returns a Boolean indicating that a notification should remain active until the user clicks or dismisses it, rather than closing automatically. My test page has this js script: new Notification("Header text", { icon: '/images/someImage.png', body: 'Notification body text!', requireInteraction : true }); Tested in different browsers. Windows 10. Chrome (56.0

How make iOS app running on background forever in Swift?

微笑、不失礼 提交于 2020-02-01 05:24:39
问题 I want to make an app that makes HTTP request to a website periodically. The app has to run in the background, but can wake up or show a notification, depending on a response of request. Like a message of WhatsApp, but I don't have a webserver, only the device check values of the http get request. 回答1: This can be done with the fetch capability mentioned in the iOS Background Execution guide. You need to include the 'Background fetch' option in your app's capabilities, and then implement the

How do I notify a process of an SQLite database change done in a different process?

混江龙づ霸主 提交于 2020-01-31 08:30:02
问题 Let's say I have two or more processes dealing with an SQLite database - a "player" process and many "editor" processes. The "player" process reads the database and updates a view - in my case it would be a waveform being mixed to the soundcard depending on events stored in the database. An "editor" process is any editor for that database: it changes the database constantly. Now I want the player to reflect the editing changes quickly. I know that SQLite supplies hooks to trace database

How do I notify a process of an SQLite database change done in a different process?

倖福魔咒の 提交于 2020-01-31 08:27:28
问题 Let's say I have two or more processes dealing with an SQLite database - a "player" process and many "editor" processes. The "player" process reads the database and updates a view - in my case it would be a waveform being mixed to the soundcard depending on events stored in the database. An "editor" process is any editor for that database: it changes the database constantly. Now I want the player to reflect the editing changes quickly. I know that SQLite supplies hooks to trace database

How to send iOS Push Notifications using TLS and PHP?

妖精的绣舞 提交于 2020-01-30 23:40:31
问题 My app is still in development and I used this tutorial to send iOS Push Notifications using PHP and SSL. http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1 It was working but it was recently depreciated because Apple recently decided to drop SSL immediately affecting all apps in development and apps in production have until October 29th to change their code. I would like to know how to do the same thing using TLS instead of SSL. Here is what my php

Modify notifications in Phonegap and Pushwoosh

爱⌒轻易说出口 提交于 2020-01-25 21:12:13
问题 I'm currently working on PhoneGap and Pushwoosh and have some questions: Is it possible to change the text / icon of the notification in the status bar? If yes, is it also possible to show the notification only when you have received some specified data? 回答1: You will need to modify SDK for that as this functionality unfortunately is not available out of the box. If you don't mind doing some Java coding it would be rather easy. You might need to modify this file: https://github.com/shaders

Modify notifications in Phonegap and Pushwoosh

旧时模样 提交于 2020-01-25 21:12:11
问题 I'm currently working on PhoneGap and Pushwoosh and have some questions: Is it possible to change the text / icon of the notification in the status bar? If yes, is it also possible to show the notification only when you have received some specified data? 回答1: You will need to modify SDK for that as this functionality unfortunately is not available out of the box. If you don't mind doing some Java coding it would be rather easy. You might need to modify this file: https://github.com/shaders

How can I keep my app's notification displayed when my app is updated on Google Play store?

雨燕双飞 提交于 2020-01-25 12:15:23
问题 My app has a function of set-notification. Here is my code. @SuppressWarnings("deprecation") public static void setNotification(Context _context) { NotificationManager notificationManager = (NotificationManager) _context.getSystemService(Context.NOTIFICATION_SERVICE); int icon_id = R.drawable.icon; Notification notification = new Notification(icon_id, _context.getString(R.string.app_name), System.currentTimeMillis()); // Intent intent = new Intent(_context, MainActivity.class); notification