I'm developing an application on Appcelerator Platform. In my android version I want to enable push notifications but I don't want to use Appcelerator Cloud Service. Could this be done using only Google Cloud Messaging?
Thanks,
Yes, you can very well use GCM without using ACS. ACS is a service offered by Appcelerator and you may/may not choose to accept it. If using GCM, then you need to use modules to work with it.
ofcourse you can, the module bellow works fine
https://github.com/hansemannn/titanium-firebase-cloud-messaging
Related
I am new to react native and I have built an app for magazines and catalogs which are loaded from my online hosting server (GoDaddy). I want to implement push notification in my app from that server on both android and IOS. Where should I begin and what are my options?
You can use services such as onesignal & fcm. Here i am sharing you some libaries for push notification
https://github.com/geektimecoil/react-native-onesignal (one signal)
You can use the below library for fcm, if you need any other firebase services such as authentication, dynamic links etc.. go for this
https://github.com/invertase/react-native-firebase (fcm)
If you just need only push notification services, you can use
https://github.com/evollu/react-native-fcm
I personally suggest you the last one, because i am using this in all of my apps and enjoying better experience with it..
note : all the above has support for both android and ios
this article will be helpfull for integration
https://medium.com/differential/how-to-setup-push-notifications-in-react-native-ios-android-30ea0131355e
Edited in 2020, last repo suggested personally is no longer maintained now. It's deprecated, as said on their repository. For future viewers, please prefer the second last package, i.e. react-native-firebase (fcm)
I tried to follow Microsoft Azure's guide to setup Push Notification with Android. But at step 4 I am stucked, as I can not find any places to enable the API for Push Notification, as the link leads to Firebase Cloud Messaging, which I can not use, since I need to provide my app for Windows too.
Azure requires GCM, but when I set it up using GCM, it fails with errorcode 401. What can I do?
... the link leads to Firebase Cloud Messaging, which I can not use, since
I need to provide my app for Windows too
Is Register your app for the Windows Store
section in Getting started with Notification Hubs for Windows Universal Platform Apps what you are looking for? If I understood you correctly, you were looking not for Xamarin-specific code, but for how to set up a hub to push to Windows devices. If it's not correct, please clarify in comments for this answer.
... the problem is, that Android is based upon GCM, and they now are using
FCM
Notification Hubs: how to Enable Firebase cloud messaging provides information about that.
I don't think, that Nikunji's answer helps. You are developing a cross platform app with xamarin. You should follow this guide, instead of Microsoft Azure's one, because the Azure Guide ist just for Android.
Good luck!
Edit: Based on the comments, I think you you should take a look at this and this.
I have my Titanium Application for Android and now I want to implement Push Notification for Android in Titanium. I have my back-end service which get all notifications for me but I don't have knowledge about Google Cloud Messaging and what are the relation between them (i.e Push Notification and GCM). Please Provide me guidelines and way how to do it. Thanks in Advance!
Doing push notifications with Titanium is probably going to require a 3rd party service, most, if not all, are subscription fee based.
I've been looking to this myself for some planned future projects using either Titanium or Apache Cordova(Phone Gap).
The most popular recommendation I've been getting is Urban Airship It looks like they have some pretty nice features, but I haven't looked much further into it than that.
For Titanium, you can use this module (Open Source): https://github.com/liccowee/Google-Cloud-Messaging--Titanium-.
In examples, you see how to implement it in your app.
Does anyone know of a way to implement push notifications using appcelerator for an android device, without using the UrbanAirship module?
Android "push notifications" are called Cloud to Device Messaging (C2DM).
This blogpost is straight from the development team member.
Update:
To use C2DM from Titanium, try the titanium-c2dm module.
Pusher (who I work for) have an Appcelerator Titanium module for Android and iPhone. You should contact support#pusher.com if you are interested.
Note: Clearly this doesn't use UrbanAirship, but I'm not 100% sure if you actually mean you want to remove all private 3rd party dependencies
Using Appcelerator Cloud Service(ACS) you can implement the Push Notification.
It is the simplest and reliable one. Follow the below tutorial for ACS Push Notification implementation on Android
http://www.titaniumtutorial.com/2012/06/appcelerator-cloud-push-notification-in.html
Hope it helps someone
Do we have any equivalent service of Push Notification (in iPhone) for Android applications?
The way to go is using C2dM the official google push api
http://code.google.com/android/c2dm/index.html
instead of building it yourself.
To support older phones and/or if you don't really need real time notification, you can use polling. Check out the BuzzBox SDK as the simplest way of adding a scheduler and notifications to your apps. http://hub.buzzbox.com
Yes, here is a good tutorial with all code you need:
http://blog.boxedice.com/2010/10/07/android-push-notifications-tutorial/
http://tokudu.com/2010/how-to-implement-push-notifications-for-android/
use this link for learn and source code for push notification in android and build on android 1.6 you can use MQTT library. And for testing push notification in emulator refer this link.
Android Cloud to Device Messaging (C2DM) - Tutorial