<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                # unipush推送功能 [TOC] ### 一、配置推送 打開項目的manifest.json文件 ![](https://img.kancloud.cn/56/35/56356b9e1330b4e8c88cb2cc3e5fceed_326x611.png) 在App SDK配置模塊勾選unipush推送 ![](https://img.kancloud.cn/9a/0e/9a0e68edd6495e59b27a336286ea7c87_1466x776.png) 在APP模塊權限配置中勾選push推送 ![](https://img.kancloud.cn/b4/7b/b47bf5c701c309a924e831726f836188_1139x540.png) 進入配置頁面 ![](https://img.kancloud.cn/3e/18/3e18373838a4f315ef09919d654e6ee8_714x121.png) 在配置時請先確認實名認證 ![](https://img.kancloud.cn/0a/6b/0a6b6d7ef26e96d794d660521fe1c373_640x216.png) ### 二、配置信息 #### 1、獲取android簽名 (1)https://ask.dcloud.net.cn/article/35777 (2)win10簽名需要寫入文件,需要管理員權限 ![](https://img.kancloud.cn/ba/5d/ba5d2ee545629ecbff17a83bb5f63760_450x242.png) ![](https://img.kancloud.cn/fc/25/fc255c9451efb8268652793019b72132_897x219.png) 生成一個名字為test的簽名 ![](https://img.kancloud.cn/4a/71/4a7176899e97439e60264437922664c1_1010x522.png) 出現這種情況直接復制系統給的命令執行即可 注意這里需要管理員權限 ![](https://img.kancloud.cn/7f/3e/7f3e0ed7a5989869af0a78ddae868aef_955x203.png) 完成后會生成兩個個keystore文件,其中old后綴是一個備份文件 ![](https://img.kancloud.cn/3e/cf/3ecfaf44d8ebf6287a2f9dbe1c66f76a_791x58.png) 可以使用以下命令查看: keytool -list -v -keystore test.keystore Enter keystore password: //輸入密碼,回車 會輸出以下格式信息: ![](https://img.kancloud.cn/37/b1/37b1225cb91b6aee00fb9f4a1efd4503_1005x492.png) 其中**SHA1**和**SHA256**是所需要的 #### 2、配置推送信息 1.其中包名需要記住,找到需要配置的應用,將之前生成的SHA1配置到應用簽名上 ![](https://img.kancloud.cn/b6/a0/b6a0a14618e266d2b9cefda02da75d75_1505x594.png) ### 三、打包執行 ![](https://img.kancloud.cn/35/9f/359ff438a8a88e0179b62cae5bea5b83_827x329.png) 包名和別名在前面需要一致 ![](https://img.kancloud.cn/3b/e4/3be4056e4716468779f1c41e558a1e22_841x651.png) 等待打包完成 ![](https://img.kancloud.cn/11/3e/113e14f9c14b1e258ba4ca42ba363ae7_847x788.png) 完成后更改打包基座 ![](https://img.kancloud.cn/f3/35/f335cceb4c963e751244ab565194d525_961x394.png) 運行到設備 ![](https://img.kancloud.cn/00/02/0002c93cb7c3f3e393e17cd904cb6966_852x459.png) ### 三、測試推送 在官網中發送一個推送 ![](https://img.kancloud.cn/92/84/9284b372709822f8e68aa492d2b2ed97_953x488.png) 注意需要打開通知權限 ![](https://img.kancloud.cn/d0/7e/d07e5fe3a69049a085caa10e8f62bf7a_335x688.png) ![](https://img.kancloud.cn/5c/a1/5ca1fa5e5b35988da2e28bfcc73c01b3_318x666.png) ### 四、配置離線廠商推送 #### 1、注冊手機廠商賬號(華為) 華為開發者平臺賬號注冊:(建議直接使用華為賬號,否則可能無法使用推送) 1.直接到[https://developer.huawei.com/](https://developer.huawei.com/)華為開發者聯盟去注冊賬號,跟著提示一步步走即可 2.賬號注冊完后到管理中心----》我的應用 ----》新建? ? 去新建項目。 ![](https://img.kancloud.cn/25/fa/25faf663100999778fd7cacb377e4b22_1879x657.png) 3.新建完成后,點擊開發進入如下頁面 ![](https://img.kancloud.cn/70/84/7084c4443ae643e039c10a0047932d2c_1668x669.png) ?4.填寫包名,**這個包名很重要,需要和unipush的包名保持一致**。 5.項目創建完成后需要生成指紋證書文件,將之前生成的SHA256填入如圖標記部分 ![](https://img.kancloud.cn/ba/8a/ba8aa2a52084c7553a7e086d383c918f_990x700.png) 自此華為所需信息都已經獲取完成。 6.項目信息完成后,開通推送服務 ![](https://img.kancloud.cn/f3/b0/f3b044de7375953fc1077e8ca7492971_993x756.png) 點擊“立即開通” ![](https://img.kancloud.cn/14/01/1401a8838fc745d72685a9b05355ae06_960x526.png) web推送代理打開 ![](https://img.kancloud.cn/24/7f/247f1455e32c7ccebee32b2ac2fff559_984x501.png) #### 2、注冊手機廠商賬號(小米) 1.到小米開發這平臺注冊賬號:需要小米賬號,非小米賬號就會沒有權限 ![](https://img.kancloud.cn/3d/44/3d44f6a311ddc6366e77bba8b41faa1c_963x206.png) 2.賬號注冊完成,就可去到推送運營平臺。點擊創建應用,創建自己的推送項目,注意報名要與unipush保持一致。 ![](https://img.kancloud.cn/df/e1/dfe13cf0452c41d1ea16d091d1ea33ad_1866x492.png) 3.點擊應用信息就可以拿到,推送需要的應用信息 ![](https://img.kancloud.cn/6e/79/6e7909307fa237cd39f32c728361603a_967x494.png) #### 3、 unipush接入廠商: 1.找到之前配置的unipush ![](https://img.kancloud.cn/0d/63/0d63752e76721c33e027ad9312247de4_1477x498.png) 2.配置廠商通道:點擊廠商推送設置將各個廠商的應用信息填入對應項中,保存。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看