What is AUTH-TOKEN for the Google Cloud Messaging(GCM)? - google-cloud-messaging

I have found library PushSharp for asp.net MVC 5 and a sample for using GCM.
var config = new GcmConfiguration ("GCM-SENDER-ID", "AUTH-TOKEN", null);
As I understood GCM-SENDER-ID is App ID from goodle console. But what is AUTH-TOKEN? I tried to use api key, but sample throws "wrong authentification" exception.
I found some tutorial on the net and somebody have the same quation https://recordnotfound.com/PushSharp-Redth-3794

Go to the firebase console for your app.
Click the Settings "gear" button to the right of the project name in the navigation - that will bring up a context menu.
Click "Project Settings".
Then in the navigation click "Cloud Messaging".
The AUTH-TOKEN is the server key listed under Project keys.

Related

How to enable Advanced Google Services via new Cloud Projects?

It seems that Google updated their projects console, and when you go to enable an advanced service in Apps Script it no longer directs you to the auto-generated project for your apps script project.
The docs say that a project will be automatically created for apps script projects.
Click Cloud Platform Project link here:
Which takes you to https://console.developers.google.com/cloud-resource-manager where it asks you to create a project.
There is no longer a selection or area to add APIs to the Apps Script project. If I follow that link with an existing Apps Script project that already has working advanced services, it errors out on the project Id.
How can Advanced Services be enabled on new Apps Script projects?
From the page you ended up on, click the "hamburger" icon/navigation menu, and then in the sidebar at the bottom, click "Google Cloud Platform." Then click the same navigation icon, and from the sidebar menu, choose "APIs and Services" That gets you to the page that should open by default.
Your account is automatically loading some other page by default. I could only guess why. We may never know why. The browser and Apps Script probably need to coordinate somehow to know what URL to load, but with the new changes, it looks like something went wrong.

Is there any sample worklight push notification project with FCM?

is there any sample worklight push notification project with FCM not GCM? so could you please give me any link where i can download.
The sample for GCM or FCM is the same one. The only thing that differs is the FCM setup steps (which now supersede those for GCM, so essentially you have only FCM).
The setup steps are mentioned here: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/notifications/sending-notifications/#google-cloud-messaging--firebase-cloud-messaging
Visit the Firebase Console.
Create a new project and provide a project name.
Click on the Settings “cog wheel” icon and select Project settings.
Click the Cloud Messaging tab to generate a Server API Key and a Sender ID and click Save.
As mentioned, the sample is the same sample:
For Cordova: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/notifications/handling-push-notifications/cordova/
For Android: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/notifications/handling-push-notifications/android/
if you are using older releases, the setup steps are the same.

How to configure Android Push Notifications (GCM) in Appcelerator Titanium Dashboard?

I've tried to following the instructions
Configuring push services for Android devices
However, the steps mention 'Click Push Notifications on the left-side navigation' but they don't exist...
Once you've created a Google API project with GCM enabled, you need to update your application's settings page in Dashboard with the API key and sender ID you generated.
To configure Arrow for push notifications using Dashboard:
Open Dashboard and select your application from the Apps drop-down menu.
Click Push Notifications on the left-side navigation <-- MISSING.
Select the Android Push tab.
Enter the server key in the GCM API Key field and the GCM sender ID in the GCM Sender ID field.
Here's a screenshot to show what's listed...
If I look under Arrow (where I suspect it might be expecting to be listed) that's empty (I'm not using Arrow - I thought it was an alternative UI using declarative XML)...
I've checked the subscription that I'm on (Indie) and it shows that I should have the ability to send up to 1 million push notifications for free..
Does anyone know how I can associate the Appcelerator Titanium project to the GCM server key??
Also, when I looked in Googles developer console, my application (which is live on their app store) wasn't listed, so I've created a new application called 'Gcm'. The Appcelerator Titanium seemed to confirm that I needed to 'create' the application, I was just too worried to call it the same name as the live application. How does the 'Google Developer Console' Application relate to the 'Google Play' application?! - if at all?
UPDATE
I've just discovered in TiApp.xml that I can enable some 'Cloud' settings and this has unlocked the 'Push' menu - so I think all is good now, could someone confirm that this is the right thing to do and answer my related question about Google play applications v google developer console applications?
Update 2
I started to get this error
[ERROR] : GooglePlayServicesUtil: The Google Play services resources
were not found. Check your project configuration to ensure that the
resources are included.
[INFO] : CloudPush.retrieveDeviceToken error: INVALID_SENDER
I'm simply calling this to try and register for Android push notifications ...
CloudPush.retrieveDeviceToken({
success : function(e) {
console.info("CloudPush.retrieveDeviceToken success");
},
error : function(e) {
console.info("CloudPush.retrieveDeviceToken error:"+e.error);
}
});
I have tried with and without the ti.cloud module (I think it got added when I clicked the 'Enable Services' button which meant that I could see the 'Push Notifications' tab, but it seems to still be listed whether the ti.cloud module is elected or not)..
Before..
Q - How to stop the Google Play error and retrieve the device token (oddly I was getting the token before enable services.
Q - Is ti.cloud used to receive the push notification, or is ti.cloudpush sufficient for this?
Thanks for the detailed question :) Let me go into some of the things you mention and clarify what I can.
If I look under Arrow (where I suspect it might be expecting to be listed) that's empty
As you later found out you have to enable platform services for your app which will create an ArrowDB app with the same name as your app. This app will have the Push Notifications in the sidebar to configure. I've updated the guide's wordings to make clear we mean the ArrowDB app, not the Titanium app.
(I'm not using Arrow - I thought it was an alternative UI using declarative XML)...
Don't confuse Arrow with Alloy - which is the MVC framework for Titanium which indeed uses XML.
How does the 'Google Developer Console' Application relate to the 'Google Play' application?! - if at all?
It doesn't. You can even have multiple apps share the same GCM sender.
[ERROR] : GooglePlayServicesUtil: The Google Play services resources were not found.
What did you use to test? A Genymotion emulator without Google Apps installed perhaps? You'll need that.
Is ti.cloud used to receive the push notification, or is ti.cloudpush sufficient for this?
ti.cloud is the module to communicate with ArrowDB, subscribe to channels etcetera. On Android you need ti.cloudpush (or as #Shawn mentioned another module) to retrieve the device token where on iOS you can use a Ti. API for that. Follow this guide for all steps.
You can ignore the Google Play Service error, but it seems your GCM Sender ID and/or API Key is wrong. Read through the tutorial and make sure you put down the right ones.
If you are using Appcelerator Cloud Service to send push notifications, you need ti.cloud to register the devices.
To get the device token and to receive push notifications, you use ti.cloudpush. There are other modules that you can use instead of ti.cloudpush.

Cannot find under-development app under My Apps

I have created a trial store and a new app. I am trying to install the app for my store but I cannot find it listed under My Apps....
What do I need to test my app?
When you go to My Apps in your store's control panel you should see a tab for My Draft Apps as pictured here.
Store Control Panel Screenshot
Any apps with a status of "Draft" that are shown in the My Apps section of the developer portal should show up under that My Draft Apps tab in the store control panel.
Developer Portal Screenshot

How do I get an APP ID for Facebook on my web site?

First of all, my simple purpose is to add a Facebook login button to my web site. So I go to the login button description.
I must be thick headed, but I cannot get an APP ID. Under the "Authentication" writeup it says, "The JavaScript SDK requires that you register your website with Facebook to get an App ID (or appId)." Clicking on "Register Your Website" takes me to the APPS page. And since the login button is indicated under "Websites", I click that and it just takes me to another page that says I must register my website. I am ready to pull out what hair I have left.
What am I missing? Do I have to create a "new" app? I can't call it login since apparently that already exists.
You need to create an app here:
http://developers.facebook.com/
Click on Apps -> Create New App
Give the app a name etc the you will need to add your websites URL into the Website section.