Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: n=ev.deviceToken;},error:function(ev){Ti.API.error('Failed to register for push notifications: '+ ev.error);}});} if(device_token!==null){Ti.API.info('device token found: '+ device_token);CloudPush.enabled=true;Cloud.Users.login({login:'apps_azkatec_user',password:'GywgY234ygeE736Egye89eEhe3',},function(e){if(e.success){Ti.API.info("Login to cloud completed.");Cloud.PushNotifications.subscribe({channel:'thankyou_bc',device_token:device_token,type:'gcm'},function(e){if(e.success){Ti.API.info("Subscribe to notifications channel completed.");}els Source: http://pastie.org/pastes/9591623/download
↧