So my iOS app was rejected because it have a button that would take you to WhatsApp to start your chat with anonymous number.
They have rejected my app and reply with this message:
We were required to install WhatsApp before we could use your app. Apps should be able to run on launch, without requiring additional apps to be installed.
Next Steps
To resolve this issue, please revise your app to ensure that users can use it upon launch. If your app requires authentication before use, please use methods that can authenticate users from within your app.
I did add the WhatsApp Scheme in my info.plist based on their website WhatsApp Scheme:
This is my code:
var hasWhatsApp : Bool {
let appScheme = "whatsapp"
let appUrl = "\(appScheme)://app"
if UIApplication.shared.canOpenURL(URL(string: appUrl)! as URL) {
return true
}
return false
}
if hasWhatsApp {
let phoneNumber = textField.text!
let StringURL = "\(K.URL.whatsappWeb)\(phoneNumber)?text="
let encodedString = StringURL.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
guard let url = URL(string: encodedString!) else {return}
UIApplication.shared.open(url)
}
I have seen lot of apps that are available on the AppStore which will take you to another app (WhatsApp for example) once you click a button inside the origin app!
I did make an appeal and told apple about the other apps but unfortunately the are ignoring my comments.
I found few topics regarding this issue but non of them was helpful
I hope some body here can help me.