This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows.Security.Authentication.Web.WebAuthenticationBroker | |
.authenticateAsync(Windows.Security.Authentication.Web.WebAuthenticationOptions.default, startURI, endURI) | |
.then(function(result){ | |
console.log('handle your provider specific token inside ' + result.responseData); | |
}, function(error){ | |
console.error(error); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var azure = require('azure'); | |
//call POST https://<service-name>.azure-mobile.net/api/<endpoint name> with the tag you want in the query parameter | |
exports.post = function(request, response) { | |
var hub = azure.createNotificationHubService("crossplatpushdemohub", "Endpoint=sb://crossplatpushdemohub-ns.servicebus.windows.net/;SharedAccessKeyName=DefaultFullSharedAccessSignature;SharedAccessKey=AGeyP6352Hg585VK88XkjrXwKy37st/dp4xVGrpdyO4="); | |
var sendMessage = function(tag, message){ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.crossplatformpush; | |
import android.content.Context; | |
import com.microsoft.windowsazure.notifications.NotificationsHandler; | |
import com.microsoft.windowsazure.messaging.*; | |
public class Handler extends NotificationsHandler { | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.microsoft.windowsazure.messaging.*; | |
import com.microsoft.windowsazure.notifications.*; | |
//full source at https://github.com/sedouard/AMSCrossPlatPush/blob/master/GoogleAndriod/CrossPlatformPush/src/com/example/crossplatformpush/MainActivity.java | |
public class MainActivity extends ActionBarActivity { | |
private final String PROJECT_NUMBER = "<YOUR PROJECT NUMBER FROM GOOGLE PLAY>"; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Fiddler; | |
using System.IO; | |
using System.Diagnostics; | |
using Newtonsoft.Json; | |
using MockHttpServer.Data; |
NewerOlder