小编Anu*_*j.T的帖子

Phonegap:如何控制手机的字体大小?

在Phonegap中我遇到了这个问题,如果我们将移动设备的字体大小从设置更改为正常到大,那么应用于应用程序的css会中断.

那么如何克服这个问题呢?我搜索了很多,但无法找到任何有关它的解决方案.

任何帮助或建议都会有所帮助.

当设备字体大小正常时,它工作正常. 图片在这里

当我在此处将设备字体大小从设置>显示>字体更改为巨大 图像时

html javascript css jquery cordova

5
推荐指数
1
解决办法
6335
查看次数

应用程序恢复后如何处理推送通知?

尝试使用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

5
推荐指数
1
解决办法
3855
查看次数