push-notification

cannot find symbol class NotificationManagerCompat

拈花ヽ惹草 提交于 2020-01-25 21:30:08
问题 I am trying to build a notification method that would result in a notification appearing on the locked screen when a particular beacon is detected. My understanding is that I need to include .setVisibility(0) in the following code: public void showNotification(Beacon beacon) { Resources r = getResources(); int random = (int)System.currentTimeMillis(); Notification notification = new NotificationCompat.Builder(this) .setSmallIcon(android.R.drawable.ic_popup_reminder) .setContentTitle("Beacons

Google Cloud Messaging (GCM) downstream message delay

十年热恋 提交于 2020-01-25 11:39:05
问题 I have downloaded and setup the Android gcm-client and gcm-demo-server (http server) from http://code.google.com/p/gcm/ . I have managed to receive downstream messages in my Android gcm-client app. I have done numerous tests with the following characteristics: The server used either a browser API key or a server API key. The data connection was either 3G or WiFi The sent message included/didn't include additional data. The sent message had/didn't have a collapse key. The sent message had

Can't get iOS push notification on server

六眼飞鱼酱① 提交于 2020-01-25 10:30:09
问题 This is a screenshot of file manager on my shared server. I will use ApnsPHP to send push notifications, but I am beginner in web developing. so, sorry for my questions. Where Can upload ApnsPHP files, so only iOS app can use it. And what is the URL that will be used in the app? Where can upload xxx.pem file, so it can't be downloaded by others. And what is its URL that will be used in other php files? How to run xxxx.php in background on shared server, because there is some file of ApnsPHP

Ionic native push registration format changed?

和自甴很熟 提交于 2020-01-25 07:00:05
问题 I am not sure why but it seems that the interface for push registration changed? My app follows the logic from https://ionicframework.com/docs/v3/native/push/ with pushObject.on('registration').subscribe((registration: any) => console.log('Device registered', registration)); where registration used to be of below type export interface PushDevice{ registrationId: string; registrationType: string; } but now I am getting {"registrationId":"{length=32,bytes=0x459ca46ab66f4fe790220809215176d6..

Unable to load client certificate private key file

空扰寡人 提交于 2020-01-25 05:51:30
问题 I am unable to create Apple Push Notification cert files. When I test .pem files I get an error. openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert pushapp_cert_dev.pem -key pushapp_key_dev.pem will give an error: unable to load client certificate private key file 140735327015760:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: ANY PRIVATE KEY I am following these instructions: https://github.com/raix/push/wiki/iOS-Micro-Walkthrough pushapp_cert

IBM Worklight 5.0.6 - Play custom sound on push notification error

守給你的承諾、 提交于 2020-01-25 00:57:19
问题 I've folow this tutorial : IBM Worklight 5.0.5 - Play custom sound on push notification but get an error: 回答1: The problem is that you placed the raw folder in the wrong location. It should be INSIDE the res folder. If you don't have a nativeResources folder in your project, just make sure to create a raw -named folder in the native\res folder and place the sound file there. Just as FYI: I've imported the Push Notifications project Updated application-descriptor.xml with my GCM ID and Key

Displaying Message Body in Push Notification

空扰寡人 提交于 2020-01-25 00:42:08
问题 I'm getting follow message when I receive Push Notification and the same JSON is displayed to user too. I want only the Data to be displayed in the body when user receives the push notification rather than displaying the whole JSON . under aps["alert"] I get this { \"Type\":\"TestType\", \"NotificationId\":\"40\", \"ImageUrl\":\"\", \"UserId\":1, \"Data\":\"Testing Push Notification\" } How to display Data in the message body of Push Notification. 回答1: func application(application:

Parse push notifications crashes eventually on background in android

萝らか妹 提交于 2020-01-24 14:13:38
问题 I am using Parse to push notifications in android but it crashes eventually on background when i turn wifi off. it gives me error: java.lang.RuntimeException: Unable to start receiver com.parse.ParseBroadcastReceiver: java.lang.RuntimeException: applicationContext is null. You must call Parse.initialize(context, applicationId, clientKey) before using the Parse library. here is my code public class ParseBroadcastReceiverCustom extends BroadcastReceiver { @Override public void onReceive(final

Phonegap Build , using Firebase, notification icon is just white/grey square

白昼怎懂夜的黑 提交于 2020-01-24 00:53:11
问题 Lots of people have been asking about this issue but all the solutions now seem to be outdated. I tried all the solutions but it's still not working for me using Phongap Build CLI9.0.0, Firebase Cloud for push notifications and phonegap-plugin-push 2.1.3. I can add icons to my app with no problem. The correct logo is shown as expected when installing and loading the app up. However when I receive a push notification the icon in the tray area is just a white/grey square. So far here's what I

Trigger a push notification from inside the app

China☆狼群 提交于 2020-01-24 00:28:08
问题 Is it possible to trigger a push notification from inside the app itself? I need to build a function that compares a remote file to a cached file and if there is any new content on the remote file it updates the cache and triggers a push notification from the app itself. I was wondering if this is possible? And if so how would I go about building it? Note: the cached file will be in JSON format. 回答1: To make this possible, you would have to permanently check for updates, which would drain the