Onesignal-ios-sdk: Apple started rejecting OneSignal SDK because of UIWebView API

Created on 2 Sep 2019  路  5Comments  路  Source: OneSignal/OneSignal-iOS-SDK

Description:
Apple will start rejecting apps that directly or indirectly calls for UIWebView API. (OneSignal framework, GoogleSignIn SDK, for example are both being warned by Apple automatic review process)

UIWebView is deprecated since iOS 12*. So, for best practice we should replace it for WKWebView

Environment
Swift 5 (target: iOS 10.0), latest OneSignal framework

Steps to Reproduce Issue:

  1. Send new app for TestFlight that uses OneSignal iOS SDK
  2. Wait for automatic app review
  3. Wait for the reproval/rejection automatic message by Apple

Anything else:
Didn't find any branch dealing with this issue. Suggestion is to use WKWebView which is modern and encouraged by Apple

Most helpful comment

@arthurdapaz @inkly Thanks for reporting, a fix has been merge in and will be included in the next release

All 5 comments

Same here

ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information

@arthurdapaz @inkly Thanks for reporting, a fix has been merge in and will be included in the next release

@jkasten2 do you have any infos when the next release will be available ?

Hi,

I'm facing the same problem. How can I fix it?

This fix was included in OneSignal-iOS-SDK 2.10.2 released Sep. 3 2019.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

reza-khalafi picture reza-khalafi  路  5Comments

ogres picture ogres  路  3Comments

brunodelgado picture brunodelgado  路  3Comments

dirkoswanepoel picture dirkoswanepoel  路  5Comments

huahengling picture huahengling  路  5Comments