我试图使我的应用程序适应iOS 10,但我遇到了推送通知的问题.我在iOS 9和iOS 10的两个设备上测试了推送.在我的应用程序功能推送通知没有打开,但应用程序在iOS 8和iOS 9中工作正常,但在iOS 10中我不能带有错误的令牌:
错误域= NSCocoaErrorDomain Code = 3000"找不到有效的'aps-environment'应用程序的权利字符串"
我打开了功能中的推送通知,并推送通知工作,有时它在iOS 10中工作正常,但第二天早上,我在iOS 9设备上测试它并没有工作,我切换到iOS 10设备并且推送不工作它也是,我回到旧版本,没有打开功能,它在iOS 9设备中工作正常,但在iOS 10中没有(令牌).我尝试删除和下载临时配置文件,删除Xcode中的所有缓存,擦除设备,我尝试iOS 10的推送通知问题,
但它没有奏效.
我该如何解决?
我有一个奇怪的罕见崩溃,在我的应用程序中,我使用了 many GMSMarker,有很多大的GMSPolygon's,有时应用程序冻结(就像你在不退出的情况下使用递归)并崩溃
在代码中,我使用GMSMapView clear(),更新GMSMarker's和updateOverlays我把所有GMSPolygon's我的GMSMapView
我通过 CocoaPods 使用 GoogleMaps 3.1.0 版
这是跟踪:
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x3fe62e42f0000030
0 AppName 0x100dcfa5c gmscore::vector::GMSMarkupMultiZoomLinesInstance::CreateLines(gmscore::model::PolylineSpan2D const&, std::__1::map<int, unsigned int, std::__1::less<int>, std::__1::allocator<std::__1::pair<int const, unsigned int> > > const&, int, float, CapShape, CapShape) + 292612
1 AppName 0x100dce62c gmscore::vector::GMSMarkupMultiZoomLinesInstance::GenerateLinesAndStyleTable(std::__1::vector<gmscore::vector::MarkupPolyline const, std::__1::allocator<gmscore::vector::MarkupPolyline const> > const&, gmscore::vector::GeometryScaleMode) + 287444
2 AppName 0x100dceff4 gmscore::vector::GMSMarkupMultiZoomLinesInstance::GMSMarkupMultiZoomLinesInstance(GMSPolygon2D*, GMSPolygonDrawStyle*, gmscore::vector::GeometryScaleMode, GMSGLTileResources*, GMSServerResourceManager*, unsigned long, GMSMarkupTapItem*, unsigned int, float, float) + 289948
3 AppName …Run Code Online (Sandbox Code Playgroud)