Skip to content

Commit

Permalink
[+]开启云推送
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwind committed May 24, 2017
1 parent 39d705e commit a35ba3d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions widget/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,17 @@
}
});
}
var push = api.require('push');
push.bind({
userName: 'testName',
userId: 'testId'
}, function(ret, err){
if( ret ){
alert( JSON.stringify( ret) );
}else{
alert( JSON.stringify( err) );
}
});



Expand Down

0 comments on commit a35ba3d

Please sign in to comment.