https://blog.csdn.net/qq_37310110/article/details/80424054
上一篇记录到unity安卓平台跟IOS平台的 本地推送,有的人可能会感觉比较复杂安卓uniytu交互是弱项,于是就想着接第三方的sdk来快速实现,那么现在其实第三方的推送sdk也有很多家什么百度,极光,友盟等。但是比较难受的是 这些公司的sdk都是针对安卓 ios的,并没有一个针对于unity集成过得能直接用的(不要告诉我友盟有,只要你不想加大工作量)。我也是在看他们的开发文档时候无意间发现极光推送竟然有uinty集成过的sdk插件。
github插件地址 https://github.com/jpush/jpush-unity3d-plugin
注意点:新建脚本Test.cs 待完善看看就好
using JPush;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Test : MonoBehaviour {
// public tex
// Use this for initialization
void Start () {
JPushBinding.Init(gameObject.name);
}
// Update is called once per frame
void Update () {
}
}