w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Push Notification service is not working, When device is switch off
Apple Push Notification service includes a default Quality of Service (QoS) component that performs a store-and-forward function. 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 are sent while the device is offline, each new notification causes the prior notification to be discarded. This behavior of keeping only the newest notification is referred to as coalescing notifications. If the device remains offline for a long time, any notifications that were being stored for it are discarded.

Categories : Objective C

how to send push notification to a specific device without creating channels using parse.com?
Parse lets you send push messages through either channels, or direct to installations (devices). What's important to realise is that a single user may have multiple installations associated with them - for example, they might own an iPhone and an iPad. You will want to send the push message to both. It is hard to tell from what you've posted what's going on, as you've merged two view controllers together. I assume that in your second view controller user is the user you are trying to send the push notification to? How are you obtaining the PFUser object that represents the friend? Maybe share that code and you might get some more help.

Categories : IOS

Apple push notification is not working for distribution but working for development
You probably use wrong deviceToken. Remember that production deviceToken and development deviceToken are different! You should log your deviceToken and then iPhone Configuration Utility will log you correct production deviceToken.

Categories : Iphone

Can we use GCM to send push notification wihout starting the app even once as broadcast receiver not working for android 3.0+
User will be shown permissions about your app, there is a way an application can start right after installation, and BroadcastReceiver work since API Level 1 to the latest API. But since API Level 11 (version 3.0) you need to use this. Intent intent = new Intent("com.mypackage.yourapp.custom.intent.action.ADDON_REQ"); intent.setFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES); sendBroadcast(intent);

Categories : Java

Android Push Notification from device to other devices
Check out the official tutorial on the Android developers site: http://developer.android.com/google/gcm/notifications.html#upstream You can just upstream a message to the Google cloud and it will be sent to other devices in the same notification group. I'd suggest that you always start with the official tutorials first and then move on to third-party blogs, it's just easier that way.

Categories : Java

Android app pop up when a GCM push notification is received on the device
If I understood correctly, what you want is to start the app directly instead of create the notification. In order to do that you just need to replace the call to generateNotification() with this code: Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("your.package.name"); startActivity(LaunchIntent); Is that what you need?

Categories : Android

Android push notification- No device registred in the server
I had issues when I tried that demo because my tomcat was running locally, but the emulator has like a "virtual router" per say so I can't access my tomcat server just using http://localhost:8080 from my android app. I'd have to use the IP of my machine running the Tomcat server, so it'd be like http://[my-machine's ip]:8080/gcm-demo where [my-machine's ip] is something like this 192.168.1.10 NOTE: You can get the IP by running ifconfig on Linux or MacOS, or ipconfig on Windows. the ip adress is the value of IPv4 field.

Categories : Java

Parse push notification notify twice for Android
Yes, replace : PushService.setDefaultPushCallback(this, YourActivity.class); to : PushService.startServiceIfRequired(this); Parse BroadcastReceiver no longer receive notifications. https://www.parse.com/questions/how-suppress-push-notification-from-being-displayed Android - Show Custom Notification without default notification- Parse.com

Categories : Android

Android GCM push notifications - sending notification to a specific device instead of all devices
But It runs notification to all the devices instead of specific device Since GCM does not support sending a notification to all devices, this is not possible. GCM supports sending a message to a specific device, or to all devices registered to same user (if you use the opt-in user notifications feature). Here what is the meaning of 3rd party Application. This is defined on the very Web page that you linked to. You can tell this by reading that page, and seeing: 3rd-party Application Server: An application server that you write as part of implementing GCM. The 3rd-party application server sends data to an Android application on the device via the GCM connection server.

Categories : Android

[Parse][Android] How to suppress push notification from being displayed when app is running?
If you use "alert" or "title" in your json data, the com.parse.PushService will intercept and display a standard notification. Rather create your own BroadCastReceiver and send the title as e.g. "header" in json. You can then control in your onReceive handler when and what to display. e.g. public class MyBroadcastReceiver extends BroadcastReceiver { private static final String TAG = "MyBroadcastReceiver"; @Override public void onReceive(Context context, Intent intent) { try { String action = intent.getAction(); String channel = intent.getExtras().getString("com.parse.Channel"); JSONObject json = new JSONObject(intent.getExtras().getString("com.parse.Data")); String title = "New alert!"; if (json.has("heade

Categories : Android

Push Notification receiver is not working
There are package name mismatches throughout your manifest : The package of the app : package="com.ettamen.app" In the permissions, you should use the package of the app, but instead you used : <permission android:name="com.ettamen.permission.C2D_MESSAGE" android:protectionLevel="signature" /> <uses-permission android:name="com.ettamen.permission.C2D_MESSAGE" /> Both should be com.ettamen.app.permission.C2D_MESSAGE. Finally, the broadcast receiver : <receiver android:name="com.ettamen.app.pushnotifications.CordovaGCMBroadcastReceiver" android:exported="true" android:permission="com.google.android.c2dm.permission.SEND" > <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" />

Categories : Java

Push Notification working in Development But not In Distribution
You need to check the following scenarios and execute. In the firewalls need to check the 2195, 2196 ports and also check gateway.sandbox.push.apple.com, gateway.push.apple.com Sign your application using distribution profiles and run the application in distribution mode. Make sure if you are running the application using distribution mode then in server side also should use distribution PEM files. I believe you are made the mistake in this scenario.

Categories : Iphone

How do you get pyapns (python push notification) working on a mac?
Solution is two-fold: If you are using virtualenv, make sure that you have activated it so that step 2's package is installed in your virtualenv and not your system's python. pip install py-kqueue Substitute the words kqueue for epoll when you want to start pyapns, like below: epoll doesn't exist on a mac. twistd -r kqueue web --class=pyapns.server.APNSServer --port=7077

Categories : Django

Notification working on Emulator but not on my device
try this function - it works on android 2 up to 4 : import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; public static void pushNotification(final Context context, int icon, String name, String descr, Intent activityIntent) { NotificationManager notifyMgr = (NotificationManager)context.getSystemService( Context.NOTIFICATION_SERVICE); long when = System.currentTimeMillis(); PendingIntent pIntent = PendingIntent.getActivity( context, 0, activityIntent, 0); Notification notification = null; if (android.os.Build.VERSION.SDK_INT < 11) notification = getNotification8(context, icon, name, descr, wh

Categories : Android

When my app is in background, push notifications are handled only if I touch the top notification banner and not working while i click app icon
You can not get data for push notification if clicked on app icon on home screen. But there is way around, you could send a small payload to your server whenever the app enters in foreground, then ask for the server to send push notification immediately. Also take a look at this : your question is possibly duplicate of it. Hope this helps you.

Categories : Iphone

int whichAccount = int.Parse(Console.ReadLine()); not working second loop
The problem is due to y = (char)Console.Read(); Consider using the following to read the first character in the input. It will ensure the entire input is read which will not leave any additional characters or empty spaces in the remaining console text: y = Console.ReadLine().Trim()[0];

Categories : C#

UDID for Push Notification instead of Device Token?
No, you can only use the Device Token. The push notification server API will only accept Device tokens and will also check if you are allowed to sent a notification to that installation by checking the Certificate. The Device token is unique for your app on a specific device. If the user has multiple device he/she will also have multiple device tokens (one for each install of your app). When the user deletes you app and reinstalls it the device token can also change. Also the UDID is no longer useable by developers, Apple has restricted the use of the UDID and you can longer use the UDID anywhere in you code.

Categories : IOS

Control push notification device registration
There's nothing wrong in the way you are registering to APNS, but you can do it more efficiently. Apple suggests that you register to the APN service every time the app is launched (and not only on the first time it is launched), because theoretically the device token might change (though it practice it almost never does). An application should register every time it launches and give its provider the current token. By requesting the device token and passing it to the provider every time your application launches, you help to ensure that the provider has the current token for the device. If a user restores a backup to a device or computer other than the one that the backup was created for (for example, the user migrates data to a new device or computer), he or she must launch the

Categories : IOS

Apple push notification Vs. Parse
I didn't understand what are you trying to ask. You can use Apple push notification service for sending remote content. With Any content related to your App. Check RemoteNotifications for details. Parse is also using the Apple's push notification service. Edit: For implementing your own servers for push notification check this tutorial : Push Notification Services

Categories : IOS

For Apple push notification, can I send without device token?
You can not send PUSH notification without enabling on appId and with out device token. please check programmer guide of apple developer http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html

Categories : IOS

How to get device token id of windows phone for push notification?
You can use the DeviceExtendedProperties - byte[] myDeviceID = (byte[])Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceUniqueId"); string idAsString = Convert.ToBase64String(myDeviceID);

Categories : Windows Phone 8

Intercepting push notification android c2dm from another application and using the notification in my app
First of all, c2dm has been deprecated for a year now. You shouldn't use it in new development, and if you have apps already using it, you should migrate to Google Cloud Messaging. In GCM, when you using the same credentials for differnt apps, you still get different registration ids for the same device. Therefore one app cannot receive the notifications sent to another app. You must send the notification from the server to the registration ids of both apps.

Categories : Android

Node.js node-apn module for Apple Push Notification stopped working after moving to Amazon EC2 instance running Ubuntu 12.04
Check your node --version s. On my Mac, homebrew installed v0.10.12 but on the server I was running v0.11.8-pre (by mistake). Apparently the present node-apn doesn't work under the unstable. I had this same extremely frustrating issue and hunted among firewalls/OpenSSH stuff until I realized the APNS connection still worked through PHP. The Ray Wenderlich script is a quick way to check if the problem is with node or elsewhere.

Categories : Node Js

getting warning messages while sending push notification to multiple iphone device
might seem like a dumb answer, but have you tried your firewall / iptables? Those errors without further information look like connection issues to me. First thing you need to resolve is the timeout problem.

Categories : PHP

Best practice to handle apple push notification when multiple users uses the same device
You can turn off receiving push notification pro-grammatically when user logs out of your app.If you did not turn off push notification pro-grammatically it will receive notifications since your device token is register with server(if your are online means connected with internet)

Categories : IOS

Parse Cloud Code: Can you pass objects in a push notification?
If you already have the class created and saved an object why not just send the object ID and query it asynchronously once the user goes to retrieve the push notification? The message object does not need to waste up space and be sent via push just a pointer is required. I'm in the process of implementing something similar and this is the route I plan to use.

Categories : Javascript

android notification large image not working
I think you should decode the bitmap before asking for it in the Builder, like this: Bitmap bitmap = BitmapFactory.decodeResource( getResources(), R.drawable.unknown); Intent intent = new Intent(this, OfferNotification.class); PendingIntent pIntent = PendingIntent.getActivity(this, 0, intent, 0); Uri soundUri = RingtoneManager .getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); NotificationCompat.Builder mBuilder = new NotificationCompat.Builder( this).setSmallIcon(R.drawable.unknown) //.setLargeIcon(bitmap) .addAction(R.drawable.ic_launcher, "d", pIntent) .setAutoCancel(true) .setContentTitle("Offer from " + restaurantName) .setContentTe

Categories : Android

PhoneGap navigator.notification not working on Android
It looks like you try to run this before PhoneGap is ready (so before navigator.notification object is initialized). Make sure your code is not executed before PhoneGap notify deviceready event. Just for test you can try to run a code like this: document.addEventListener("deviceready", function() { navigator.notification.vibrate(1000); navigator.notification.alert("Hello"); navigator.notification.beep(1); }, false);

Categories : Android

Alarm Clock notification not working in android
Error is NullPointerException at line 35. There's nothing at line 35 in your code. may be it was because of this line Bundle extras = getIntent().getExtras(); String ename = extras.getString("ename"); You can resolve it by using this Bundle extras = getIntent().getExtras(); String ename; if(extras == null){ ename = "some default name"; } else{ ename = extras.getString("ename"); }

Categories : Android

Does receiving one push notification or multiple push notification have any different effect on battery usage?
I believe that sending ten notifications an hour will consume more battery than one notification an hour. The reason is that when each notification arrives, it will wake your screen to show you that there's a new notification, and that consumes battery.

Categories : IOS

How to save parse push notification message in local storage sencha touch?
You should make a store that uses local storage, then add a model when you get a push and sync the store: Ext.define('MyApp.model.Notification', { extend: 'Ext.data.Model', config: { fields: [ // notification fields ], proxy: { type: 'localstorage', id: 'notifications' } } }); Ext.define('MyApp.store.Notification', { extend: 'Ext.data.Store', config: { model: 'MyApp.store.Notification', autoSync: true, autoLoad: true } }); receiveNotification: function(notif) { var store = Ext.getStore('Notifications'), record = //create your model from notif store.sync(); }

Categories : Extjs

Android push notifications not working (Corona sdk)
Json is completely fine. There might be the problem of url you set up and for triangle notification problem you can go through the following link: http://jsonlint.com/#

Categories : Android

Android notification FLAG_AUTO_CANCEL not working and not showing new Activity
use this.. notification.flags = Notification.DEFAULT_LIGHTS | Notification.FLAG_AUTO_CANCEL Android notification doesn't disappear after clicking the notifcation

Categories : Android

Working with android:layout_alignStart and a real Android Device
Your problem is layout_alignStart is supported from Android 4.2 (API level 17), but Galaxy Note II is 4.1.2 (API level 16). If you go to http://developer.android.com/reference/android/R.attr.html#layout_alignStart and change the API level (in the top left corner of the page) to 16 or lower, you'll see layout_alignStart entry become grayed out.

Categories : Android

Jquery code not working on mobile device but working in browser
Since you're using jQuery Mobile, try using vclick rather than click. http://api.jquerymobile.com/vclick vclick will work with both touch events and mouse click events, whereas click only deals with actual click events - which can be finicky on a mobile device (and sometimes not fire at all when tapping on things). UPDATE: some questions/feedback: why do you have a click event on a form? $('#choosefriendsform').click(function() { That doesn't look right to me... Click events should be on buttons, or clickable elements. This could be the source of your issue. If you're trying to do event delegation on the form, then you need to use 'on' or 'delegate' I.e. this should target just the list items of peoples names: $('#choosefriendsform').on('vclick', '.ui-listview .ui-li', function

Categories : Jquery

Android debug mode not working waiting for device
For HTC try downloading HTC sync and give a try.. I also had this problem and i used eclipse IDE. I Re connected and try 2-3 times and after that i run adb devices I got it as online. Also check out for the devices TAB in eclipse(if you are using that) .It also gives a list of attached devices. Also try adding this android:debuggable="true" to application tag(<application>) in androidmanifest.xml Hope it helps :)

Categories : Android

Android device back button is not working in worklight
May I ask why you are not using the Worklight-provided API to override the physical back button? See: WL.App.overrideBackButton WL.App.resetBackButton

Categories : Android

Android Support Library ActionBar not Working in 2.3 Device
I think the answer to your problem is in official developers guide: You should declare search widget <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:yourapp="http://schemas.android.com/apk/res-auto" > <item android:id="@+id/action_search" android:title="@string/action_search" android:icon="@drawable/ic_action_search" yourapp:showAsAction="ifRoom|collapseActionView" yourapp:actionViewClass="android.support.v7.widget.SearchView" /> </menu> If you need to configure the action view (such as to add event listeners), you can do so during the onCreateOptionsMenu() callback. You can acquire the action view object by calling the static method MenuItemCompat.getA

Categories : Android

jquery not working on firefox but working on console
Is that button generated on the fly, dynamically ? well, it seems so. If that is the case, then, try using $("button#close").live('click',(function() { disablediv(); }); I faced similar issues before and solved it with this method. Hope it helps !

Categories : Jquery

Simple XML is not working from android device works fine with emulator
The statement made on this question is incorrect. Your code is working on both your device and on the emulator. The below message has nothing to do with the operation of Simple XML on Android. On Android it uses XML Pull not StAX. 07-25 11:52:17.351: I/dalvikvm(2934): Could not find method javax.xml.stream.XMLInputFactory.newInstance, referenced from method org.simpleframework.xml.stream.StreamProvider. 07-25 11:52:17.351: W/dalvikvm(2934): VFY: unable to resolve static method 6849: Ljavax/xml/stream/XMLInputFactory;.newInstance ()Ljavax/xml/stream/XMLInputFactory; Ignore this message!

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.