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

PluginsDemo.cs中使用了一个变量params,和关键字重了啊 #35

Open
oOtroyOo opened this issue Jan 7, 2019 · 0 comments
Open

Comments

@oOtroyOo
Copy link

oOtroyOo commented Jan 7, 2019

#if UNITY_IPHONE || UNITY_IOS
if (GUILayout.Button("Trigger local notification after 3 seconds", GUILayout.Height(80)))
{
JsonData params = new JsonData();
params["title"] = "the title";
params["id"] = 5;
params["content"] = "the content";
params["badge"] = 9;
TimeSpan ts = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0);
long ret = Convert.ToInt64(ts.TotalSeconds) + 3;
params["fireTime"] = ret;
params["subtitle"] = "the subtitle";
JPushBinding.SendLocalNotification(params.ToJson());
}
#endif

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