Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/101.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
IOS中的GCM通知未显示在状态栏上_Ios_Objective C_Google Cloud Messaging_Apns Php - Fatal编程技术网

IOS中的GCM通知未显示在状态栏上

IOS中的GCM通知未显示在状态栏上,ios,objective-c,google-cloud-messaging,apns-php,Ios,Objective C,Google Cloud Messaging,Apns Php,我已经实现了Google链接中定义的所有步骤,我的应用程序在每次打开应用程序时都会收到通知。但此通知未显示在状态栏中。我使用了以下有效载荷。请推荐一个人 $msg['aps'] = array ( 'alert' => $pushmessage, 'sound' => 'default', ); 尝试添加徽章 $msg['aps'] = array ( 'alert'

我已经实现了Google链接中定义的所有步骤,我的应用程序在每次打开应用程序时都会收到通知。但此通知未显示在状态栏中。我使用了以下有效载荷。请推荐一个人

    $msg['aps'] = array
    (
     'alert'       => $pushmessage,
     'sound'         => 'default',

     );
尝试添加徽章

    $msg['aps'] = array
    (
     'alert'       => $pushmessage,
     'badge'       => '1',
     'sound'         => 'default',

     );
尝试添加徽章

    $msg['aps'] = array
    (
     'alert'       => $pushmessage,
     'badge'       => '1',
     'sound'         => 'default',

     );

应用程序运行时,传入的通知不会按设备显示。您必须处理它(DidReceiveEmotentification),并向用户或其他任何人显示任何类型的警报。 也许你想使用一个像或的组件

应用程序未运行时,如果设备未显示通知,请检查以进行测试


我希望它有助于

当您的应用程序运行时,设备不会显示传入的通知。您必须处理它(DidReceiveEmotentification),并向用户或其他任何人显示任何类型的警报。 也许你想使用一个像或的组件

应用程序未运行时,如果设备未显示通知,请检查以进行测试

我希望它能有所帮助

此url已满帮助此url已满帮助