jpush / jpush-react-native

JPush's officially supported React Native plugin (Android & iOS). 极光推送官方支持的 React Native 插件(Android & iOS)。
http://docs.jiguang.cn
MIT License
1.35k stars 336 forks source link

IPad Mini2 getRegistrationID callback不回调,无法获取registrationId。 #454

Closed lsk-boy-f closed 6 years ago

lsk-boy-f commented 6 years ago

你的运行环境

IPad Mini2 iOS11.0.3

实际效果

JPushModule.getRegistrationID的callback从不执行。而iOS模拟器可以正确获取。

重现步骤

  1. APPDelegate.m内容:
    
    /**
    * Copyright (c) 2015-present, Facebook, Inc.
    * All rights reserved.
    *
    * This source code is licensed under the BSD-style license found in the
    * LICENSE file in the root directory of this source tree. An additional grant
    * of patent rights can be found in the PATENTS file in the same directory.
    */

import "AppDelegate.h"

import

ifdef NSFoundationVersionNumber_iOS_9_x_Max

import <UserNotifications/UserNotifications.h>

endif

import <React/RCTBundleURLProvider.h>

import <React/RCTRootView.h>

@implementation AppDelegate

Debug logs

包括 Android 或 iOS 的日志:

huangminlinux commented 6 years ago

模拟器不能获取 rid。

huangminlinux commented 6 years ago

要正常使用 jpush 的相关功能,需要真机。

lsk-boy-f commented 6 years ago

@huangminlinux 现在的状况是模拟器可以读到,而iPad真机读不到

lsk-boy-f commented 6 years ago

找到原因了,jpush后台里,只配置了Android的,没有配置ios的key