我使用 caffeina GCM with Titanium 。我想转换将通知对象推送到JSON对象。我该怎么办?
我想要动态。
由于
var req = require('it.caffeina.gcm')。registerForPushNotifications({
senderId : '480608162759',
success : function(e) {
console.log(e.deviceToken);
},
error : function(err) {
Ti.API.error('Notifications: Retrieve device token failed', err);
}
});
答案 0 :(得分:0)
/usr/include/bits/stdio.h: In function '__ssize_t getline(char**, size_t*, FILE*)':
/usr/include/bits/stdio.h:118: error: '__getdelim' was not declared in this scope