Certificate problem encountered in accessing Umeng push

Time:2020-5-23

1. After integration, the test mode can be pushed successfully, and the production environment cannot be pushed successfully.
For certificate problem, delete repeatedly to create upload, or fail.

Baidu view reason: found that only test mode can push, and need to add token to push, quite troublesome.


For the push development mode, you need to provide a device token, otherwise you can directly notify all,
It’s not news

func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
        
        UMessage.registerDeviceToken(deviceToken)
     //   print(deviceToken)
         print( deviceToken.map  {string (Format: "% 02.2hx", arguments: [$0])}. Joined(), "push devicetoken")
    }

Register push device and print device certificate


In other words, an ad hoc package is needed to test the friendly push of the production environment


Because of a certificate problem

Select release as the direct option option. Generally, the correct certificate cannot be entered

Set the option to release

of no avail


Because the certificate is automatically signed
Certificate problem encountered in accessing Umeng push


Unless manually signed,

Self configuration description file


Package and upload app store,

There’s another autograph

This time, it came into effect, and it was equivalent to a re signature


2. When the app is active, it cannot receive the banner of push notice

Recommended Today

Configure Apache to support PHP in the Apache main configuration file httpd.conf Include custom profile in

In Apache’s main configuration file / conf/ http.conf Add at the bottom Include “D:workspace_phpapache-php.conf” The file path can be any In D: workspace_ Create under PHP file apache- php.conf file Its specific content is [html] view plain copy PHP-Module setup LoadFile “D:/xampp/php/php5ts.dll” LoadModule php5_module “D:/xampp/php/php5apache2_2.dll” <FilesMatch “.php$”> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch “.phps$”> SetHandler application/x-httpd-php-source </FilesMatch> […]