Related to Android Mobile Application.
Developed with Eclipse IDE.
Once we create an Android App with some activities, we will get .apk after execution.
That .apk, uploaded in Google Play Store.
Later, I need to send push notifications to .apk which is installed in several mobile devices.
In this scenario, Pushwoosh should get only Google Project ID and then it can deliver push notifications to devices. is it not?
Why we need to include pushwoosh.jar? Rolling back all AndroidManifest and MainActivity?
Really I could not understand.
I dont know, I may wrong. But still, Kindly clarify.
You need to learn the basics of the push notifications technology. You will need to integrate Pushwoosh SDK in order to send Push Token from the device to Pushwoosh Servers. Each and every device has its own unique push token.
Related
I read a lot of articles about how to implement Push Notifications with Cordova (and Ionic 2) and I'm not sure how to implement that in China when not using Google's push server.
I think using https://github.com/phonegap/phonegap-plugin-push is a good idea. But all the Howtos are focussing on creating an account in Google's FCM which is not really helpful in China. I doubt Chinese phones use Google to poll for notifications. Which leads to my next question.
I was assuming that there exists only one central push service for all platforms (Android, iOS and Windows) and vendors for the following reasons:
One platform is only polling from one fixed push server to save battery life.
If an app (server side) is sending a push notification, it does not know anything about the receiver's device, so it can only count on a centralized service delivering the message to the device regardless of platform or vendor.
But do Apple, Google and Microsoft all use the same push service? I doubt it, and that's what makes me confused. Also, if I'm in China, as Google's services are unstable here, the Android phones distributed in China are not using Google and even not install Google Play Store.
When I install a Chinese app (hosted in China) on a German phone (Android) I still get all notifications for that app even if I'm obviously polling from Google's push server. That means, the notification messages of the Chinese app is somehow delivered to Google.
The only explanation for that is that the different push services are working together. Is that the case? If so, than does it make a difference where I create an account (Google FCM: https://medium.com/#ankushaggarwal/gcm-setup-for-android-push-notifications-656cfdd8adbd#.rr2lfivfh), it is still usable on different push servers? Also, when I send a notification, could I use any server all over the world?
How can I find out which push server my phone is connected with (Android)?
A lot of confusing here, I really appreciate if someone could bring light to that topic :-)
The reason GCM / FCM does not work in China is simply because the Great Firewall of China blocks connectivity to all the various Google services, FCM included.
Also, most, if not all, China-sold phones do not come with Google Play Services, a requirement for FCM to work.
Even if you were to take a German phone, as you mentioned, into China, it would not receive notifications albeit having Google Play Services, due to the firewall.
But there are alternative push notification gateways you could use instead, which are far more reliable and do not depend on Google Play Services. One of those is Pushy.
Pushy (https://pushy.me/) offers a highly-reliable push notification gateway for Android apps that works independently from FCM, using its own background MQTT connection. It also offers iOS support so you can push all of your users via a single API for cross-platform support.
Full disclosure: I founded Pushy.
With Cordova, you can use the plugin cordova-plugin-xiaomi-push done with the Xiaomi Android SDK. I have tested and it works well with all the phones when the application is running. And even when the app is closed with Xiaomi phones :)
The advantage to use Xiaomi is that their developer website is in English and their server's APIs are simple.
There are also 2 plugins for Huawei and Oppo, which work well with the respective brand phones, even if the app is closed. But the API side is more complicated than with Xiaomi. To cover all the supplier with notifications when app is closed, it seems necessary to build one version per manufacturer/stores which include the required plugin (That is possible using a bash script) + build a push server that would send the notification to the right provider.
Google FCM notification not works in china country. You have to use some different push notification provider like Pushy.
For China Country, I used pushy service. You can go through this link if you wanna interested to use pushy service. Please check this link.This will help you
At the moment I have an android app on the Play Store and on the Amazon Store.
I need to implement push notifications and I need to use Amazon Simple Notification Service.
I've already implemented the Android part and it's all ok, but when I run the app on an amazon device push notification system doesn't work. I've discovered that GCM is not supported by Amazon devices. (nice..)
So, I guess that what I need to do is that my android app utilizes GCM if running on an Android Device and ADM if running on an amazon device.
Is it possible to do that with a single application? Is there anybody who did this in the past? I can't find a lot on the internet regarding this topic
Thank you very much for helping me
Yes using GCM on Android and ADM on Amazon devices is the correct way to go. For using ADM with SNS, this guide will probably help http://docs.aws.amazon.com/sns/latest/dg/mobile-push-adm.html
As far as using a single application, it looks like others have asked this and it's not the best approach but it seems like it can work. Checkout
Is it possible to reliably detect at runtime which store installed an Android App (Google Play or Amazon Market)?
Detect app is running on Kindle Fire
Hope this helps
Can I install 2 Pusk SDK Service in an app (Android and iOS)? we need to migrate from ExactTarget to Parse or UrbanAirship, but managers need time to migrate, so, we want to use ExactTarget for Marketing automation process (already configured) AND use Parse internally for calling API triggers notifications.
if you are working on native android apps then i suggest to use google cloud messaging for sending push notifications,in my experience i use UrbanAirship for Web apps only,using multiple SDK is not good idea because if you are working with one technology/process for notifications then its easy to configure any problem if occurred in future..
There's nothing 'wrong' with using two SDKs to handle push notifications. For iOS, delivery is handled by APNS (Apple), and for Android, delivery is handled by GCM (Google). So, the delivery of the notifications will not change. The SDKs that are provided by the services you listed above are normally used to:
1) Handle the arrival of the notifications
2) Record/manage the audience to which notifications can be sent to
3) Provide analytics for the notifications that were just sent.
The biggest concern/issue that you probably will have will be the handling of your audience. Services such as Urban Airship and Parse, provide the convenience of managing your device information. Without going into too much detail, you have to know WHO you are sending notifications. Depending on which provider you choose, you will need to migrate that device information from old to new. Here's some links that will get you going on that, but let me know if you have any other questions:
Apple:
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html
Google:
https://developers.google.com/cloud-messaging/server-ref
For example the client wants to use Urban Airship to send a push notification to users with app version 1.0 only, but not 1.1 or 1.2. They might want to remind users of an old version to update their app, without bothering users who have already updated.
Is it possible to implement? If so, how? As far as I know, there is no way to control that and all registered users will receive the broadcast message. But I just wanted to double check.
Thank you
You must not make this, google will ban your app from the market as they do not allow anymore push notifications sent to the users for advertising another or your own app. So even if there is no way to "select" people exept if you run your own server updated by the app (you cant do it throught google platform ) dont bother to make a server for that as you will be incompatible with Google's App policy.
how to create push notification in Android using GCM or either C2DM i have tried and check some sites and didn't get exact answer.i need to know how it works.Can any one provide me good tutorial on push notification
Could anybody help me. Thanks!!
Its Depend on your requirement what you have to do.
here is sample of C2DM: in this sample android device is registered wtih server after that server send massage to all device. so there is one way communication(server to Android device)
So all things are done at server side. just download this tutorial. Both Server side(PHP) and Android code are available.
Edited:
you got application key from Google services which you have to put at server side.
SENDER_ID – Google project id which you have to send when you want to register your device with server.
You can use GCM demo app supported by Google. One needs to install GCM libs using SDK manager and then create API keys in Google APIs console. Follow instructions from the link and you can create an app that receives push notifications from GCM server. I did try this and it worked even on my Android emulators. You need to use Emulator that targets Google APIs though.