在Phonegap中我遇到了这个问题,如果我们将移动设备的字体大小从设置更改为正常到大,那么应用于应用程序的css会中断.
那么如何克服这个问题呢?我搜索了很多,但无法找到任何有关它的解决方案.
任何帮助或建议都会有所帮助.
当设备字体大小正常时,它工作正常. 图片在这里
尝试使用PushPlugin处理推送通知.以下是我的代码.
onNotificationGCM: function(e) {
switch( e.event )
{
case 'registered':
if ( e.regid.length > 0 )
{
console.log("Regid " + e.regid);
//alert('registration id = '+e.regid);
sDeviceId = e.regid;
//alert(sDeviceId);
}
break;
case 'message':
// this is the actual push notification. its format depends on the data model from the push server
alert('message = '+e.message);
alert('message = '+e.message+' msgcnt = '+e.msgcnt);
if ( e.foreground )
{
alert("Notification Received");
}
else
{ // otherwise we were launched because the user …Run Code Online (Sandbox Code Playgroud) push-notification phonegap-plugins cordova phonegap-pushplugin