View difference between Paste ID: FYAX1PvA and 3SXQwRkF
SHOW: | | - or go back to the newest paste.
1
void Start () {
2
		IOSNotificationController.instance.RegisterForRemoteNotifications (UnityEngine.iOS.NotificationType.Alert |  UnityEngine.iOS.NotificationType.Badge |  UnityEngine.iOS.NotificationType.Sound);
3
		IOSNotificationController.OnDeviceTokenReceived += OnDeviceTokenReceived;
4
		Debug.Log ("start loading screen");
5
}
6
7
8
void OnDeviceTokenReceived(IOSNotificationDeviceToken token) {
9
		Debug.Log ("OnTokenReceived");
10
		Debug.Log (token.tokenString);
11
12-
		SFSObject obj = new SFSObject ();
12+
13-
		obj.PutUtfString ("tkn", token.tokenString);
13+