jpush-unity3d-plugin icon indicating copy to clipboard operation
jpush-unity3d-plugin copied to clipboard

因為目前Plugin只有iOS/Android,JPushBinding.cs的Platform Compile應該要修改

Open wywarren opened this issue 6 years ago • 0 comments

例如: `public static void Init(string gameObject) { #if UNITY_ANDROID _plugin.Call("initPush", gameObject);

        #elif UNITY_IOS
        _init(gameObject);
		
        #endif
	}`

要改成: `public static void Init(string gameObject) { #if UNITY_ANDROID && !UNITY_EDITOR _plugin.Call("initPush", gameObject);

        #elif UNITY_IOS && !UNITY_EDITOR
        _init(gameObject);
		
        #endif
	}`

否則在編輯器裡面執行都會有runtime EntryPointNotFoundException

wywarren avatar Apr 01 '18 08:04 wywarren