Social share button not working | RocketWeb iOS

After buying from codecanyon, configure and everything was working fine but the social (Facebook, WhatsApp, Messenger, etc) share button is not working.

Test all the share links on real device simulator, not support share URL.

First of all, check your share link type and follow bellow:

Type 1:
For example if your URL something like:


That’s mean your prefix is “fb-messenger” and “viber“. So it’s not any URL you need to allow this first on your project. Please check here, if your prefix not found then please add it to the list.


After that add bellow code for your prefix, In my case prefix is “fb-messenger” and “viber“, so my code will be:

 if (url.absoluteString.hasPrefix("fb-messenger")) {           browseUrlInternal(viewcontroller: self, url: url)        }elseif (url.absoluteString.hasPrefix("viber")) {            browseUrlInternal(viewcontroller: self, url: URL) 


Type 2:
If you are URL something like this or a valid URL then:…..

Add this below code on your HomeViewConroller.

else if(url.absoluteString.contains("")
|| url.absoluteString.contains("")){
browseUrlExternal(viewcontroller: self, url: url)

Here I add this,
|| url.absoluteString.contains("")

Leave a Reply