Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用Push Plugin在为 Android 和 iOS 制作的 Phonegap 应用程序上接收通知。通知是从 Rails 应用程序发送的。
有没有办法在不编写本机代码的情况下单击通知后打开特定的应用程序视图?
这取决于您使用的框架。
Javascript
window.history.replaceState(null, '', '/view_url/' + params);
角 JS
$state.go('app.customView');
是的,从服务器端代码在有效负载中发送额外参数通知将在接收并单击后触发事件