Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wywarren opened this issue Apr 1, 2018 · 0 comments

Comments

@wywarren
Copy link

wywarren commented Apr 1, 2018

例如:
`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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant