Fullcalendar not showing events in IOS devices

依然范特西╮ 提交于 2019-12-25 08:21:17

问题


I have used Fullcalendar in one of my html page. It is working fine in chrome and mozilla. Also same is working fine in Android devices. But issue is with IOS device.

Calendar events itself are not being loaded. Didn't found any solution for this on net. Please provide any help on this.


回答1:


Just a couple of attempts:

  • try to load another url and to see if the problem is in your html page or in your app
  • take a look at your plist, in particular at the NSAppTransportSecurity

In this second case, you can add this key:

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

If the problem is the NSAppTransportSecurity, you'll have to set up it correctly with your domain.




回答2:


Do you get this deprecation warning in browser console?

Deprecation warning: value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.

If yes, check the date format for event start and end. In my app it was RFC822 (nonISO), causing fallback to date format not working on iOS devices.

Changing date parsing to ISO8601 helped in my case.



来源:https://stackoverflow.com/questions/40280577/fullcalendar-not-showing-events-in-ios-devices

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!