详细问题描述
[内容]
iOS pause和resume事件不触发
重现步骤
[步骤]
[结果]
[期望]
运行环境
iOS widget方式集成
[系统版本]
[浏览器版本]
[IDE版本]
[mui版本]
附件
[代码片段]
[安装包]
联系方式
[QQ]
[电话]
详细问题描述
[内容]
iOS pause和resume事件不触发
重现步骤
[步骤]
[结果]
[期望]
运行环境
iOS widget方式集成
[系统版本]
[浏览器版本]
[IDE版本]
[mui版本]
附件
[代码片段]
[安装包]
联系方式
[QQ]
[电话]
猫猫猫猫 - 用户已离线
你的AppDelegate文件里丢了代码吧,这些事件你得在此传入h5+sdk里面
- (void)applicationDidEnterBackground:(UIApplication *)application
{
[PDRCore handleSysEvent:PDRCoreSysEventEnterBackground withObject:nil];
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application
{
[PDRCore handleSysEvent:PDRCoreSysEventEnterForeGround withObject:nil];
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
具体可参考h5+SDK里面的示例
无处不在的叶子 (作者)
谢谢,万分感谢,这是我对sdk了解不够造成的,真的很感谢。
2017-01-16 13:44