简体   繁体   中英

Titanium: Android device token without Cloudpush

Is there anyway to get device tokens without using Cloudpush modules. All I'm interested in is getting tokens and store onto my server and then I can push notification to registered devices.

I have tried to use it Cloudpush module from this link http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.CloudPush

I followed these steps:

1) First Step : Open this link https://developers.google.com/console/ than login with you account. Create a new project

i) "Creating a Google API Project", 
ii)"Enabling the GCM Service"
iii)"Obtaining an API Key"

Image snap link : http://1.bp.blogspot.com/-AKAcUDtW0gg/UlK8rcpqUQI/AAAAAAAACuI/aq89OFZc2C4/s1600/all_steps.png

2) Second Step : Click on this link https://cloud.google.com/console#/project You can found you project that you already created. Just Click on that and you found the Example: Project Number: 91060sdsdgsd

3) Third Step : Now next step open this url https://my.appcelerator.com/apps Login with your appcelerator account where you want to configure this vcm. Click on your project than at the top side there are two option (Production/Development). Click on Development. Now the main menu box will open in that there is 2nd (Second) tab click on that. Now you found in that page Android Push Configuration please fill this both fields i) Google Cloud Messaging(GCM) API Key: ii)Google Cloud Messaging (GCM) sender ID:

However all I'm getting is Failed receiving GCM SenderId.

As you already know the process to get keys/etc, so I wont rewrite it.

You asked to fetch the device token without Cloudpush , yes it can be done and you have to use a GCM module for this process.

Following info will be helpful in using module :

Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM