所以我在IOS中遇到通知问题,我在Android中成功收到了通知,但在IOS中没有收到。要为IOS配置通知,我遵循了react-native firebase的文档,这是两个对我有帮助的链接
所以,这是我的配置
update_op_hook = UpdateOpsHook()
summary_op = tf.summary.merge_all()
if mode == tf.estimator.ModeKeys.TRAIN:
summary_train_hook = tf.train.SummarySaverHook(
save_steps=100,
output_dir='train_summaries',
summary_op=summary_op)
optimizer = tf.train.AdamOptimizer()
train_op = optimizer.minimize(loss)
return tf.estimator.EstimatorSpec(mode=mode, predictions=preds, loss=loss,
train_op=train_op,
training_hooks=[summary_train_hook, update_op_hook]
)
eval_metric_ops = {'accuracy': (acc_value, acc_op)}
return tf.estimator.EstimatorSpec(
mode=mode, predictions=preds, loss=loss, eval_metric_ops=eval_metric_ops)
Podfile
`AppDelegate.m``
AppDelegate.h
这是我使用的库
您知道我在哪里配置错误以实现IOS通知吗?