Code

Discussion on SuperView - WebView App for iOS with Push Notification, AdMob, In-app Purchase

Discussion on SuperView - WebView App for iOS with Push Notification, AdMob, In-app Purchase

Cart 1,376 sales

963 comments found.

1. Loading does not work when a new window is opened. 2. Onesginal worked flawlessly. I added GoogleService-Info.plist for Firebase but it didn’t work.I couldn’t find information for Firebase in the documentation.

I am waiting for your help.

Hi, I need help please. your app is not functional when it comes to using the most of the described options. -There is to problems with onesignal. First: attached image does not show in notification. Second: all links are opened in safari ! -www folder for offline html is not there, there is no folder with this name. and here is what you wrote in documentation “add your webisete in www folder located in the app” where the location ! is APP a location or path ?!

Hi, there is to problems with onesigna. First: attached image does not show in notification. Second: all links are opened in safari !

Hi, i have an important note. I saw in your YouTube video and noticed that you need to run a file named run.sh (Shell Script). I already tried an app using this method and couldn’t use it because of this run.sh. A normal user can’t run Shell Script in mac, and it’s very difficult to install the environment for it. Can’t you make it like a normal xcode project? why you use this method.

an yeah! after purchasing your app, i got stuck with the run.sh file. the commands won’t run all, it stoped after “Xcode project created”. something wrong with pods or i don’t know. Still don’t understand why don’t you export the project normally.

Hi, i want to order 4 licenses. i Have one question. is there a JavaScript API or any trick to communicate OneSignal player id from native to web?.

Hi, yes you can get the id, you will find the method in the documentation. Best

yes thank you, i think i can get it, but only after the app stops showing errors.

Can I use In-app Purchase for premium content? I mean the content will not showing until the user buy Subscription?

Please help Cannot find ‘SuperView’ in scope

Cannot find ‘SuperView’ in scope

Please help with this error. It supposed to be clean coded…

I’m having the same problem. I double clicked the Run.sh script file, but it doesn’t generate App.xcworkspace file

I installed also all of this Homebrew CocoaPods ImageMagick XcodeGen

solved. the terminal wasn’t directed to that folder

hello i need help emergent please guys #!/bin/bash

set -e

trap “exit 1” TERM TOP_PID=$$

DIR=$( cd ”$( dirname ”${BASH_SOURCE0}” )” && pwd )

function alert() { echo ” – There was an error” kill -s TERM $TOP_PID }

function generateAppIcon() { echo “✋ – Generating App Icons” generator=$DIR/scripts/ios-icon-generator.sh; appIcon=$DIR/Icons/app_icon.png; appIconAssets=$DIR/Sources/Assets.xcassets/AppIcon.appiconset/; handleGenerate=$(/bin/sh ”$generator” ”$appIcon” ”$appIconAssets”); }

if [[ $handleGenerate == "Generate Done" ]]; then
  echo " - App Icon created" 
else
  echo " - App Icon generating failed" 
  alert
fi

function generateSplash() { echo “✋ – Generating App Icons” generator=$DIR/scripts/ios-splash-generator.sh; splashIcon=$DIR/Icons/splash.png; splashIconAssets=$DIR/Sources/Assets.xcassets/splash.imageset/; handleGenerate=$(/bin/sh ”$generator” ”$splashIcon” ”$splashIconAssets”); }

if [[ $handleGenerate == "Generate Done" ]]; then
  echo " - Splash created" 
else
  echo " - Splash generating failed" 
  alert
fi

function createProject() { echo “✋ – Generating project” cd ”$DIR”; createXcode=$(xcodegen) }

if [[ $createXcode == "Created project" ]]; then
  echo " - Xcode project created" 
else
  echo " - Xcode project generating failed" 
  alert
fi

function openProject() { openXcode=$(xed .); if $openXcode; then echo ” – Let’s open the project now” kill -9 $PPID else echo ” – Can’t open Xcode project” alert fi }

function podInstall() { installPods=$(pod install) if [[ $installPods == “Pod installation complete!” ]]; then echo ” – DONE” #otvori xcode $(xed .); kill -9 $PPID else echo ” – Can’t install pods” alert fi }

cd ”$DIR”; $(rm -rf *.xcodeproj); $(rm -rf *.xcworkspace); $(rm -rf Pods); $(rm -rf Podfile.lock);

generateAppIcon generateSplash createProject podInstall openProject

please help me it is very emergent please

brother i need help please my customers waiting the app can you please help me to sort i out this problem pleqse consider it very emergent

The above is not an error, it’s my code for running the project. You didn’t run the script in the terminal or something. I can’t know what you did with the above comments.

The application is constantly renewing itself, I think the reason is internet control, or low connection control, it has become very disturbing, remove this feature or solve it, I sent you an e-mail 4 days ago, I am waiting for your return.

I’m embedding a site using Microsoft login and after the user finalize the login the app crashes. I downloaded latest version and only changed the url to office.com and still same problem. Can you have a look at that’s wrong?

Hi,

Can you attach the logs from Xcode?

Thanks

Log: 2022-06-20 09:23:26.339796+0200 App[62899:3120814] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

Thread 1: EXC_BREAKPOINT (code=1, subcode=0×1051e66cc) class AppDelegate: UIResponder, UIApplicationDelegate, line 43, AppDelegate

This happens after i logged in and verified the login. The login process is just bouncing around a few Microsoft-sites so that should not be a problem.

Hi,

Can you zip the project and send it to me on the email brommko@yahoo.com and I will try to reproduce the issue and let you know.

Best regards

Pre-purchase question: In App Purchases: Does your project allow for purchase of subscriptions within webview app? We don’t want to run in-app ads but rather just sell the subscriptions to the service. Please let me know.

Hi,

No, just one-time purchase for removing ads.

Best

Hi. I need ‘isStatusBarLight’ enabled, but this only works if the ‘navigationBar’ is enabled. I want ‘navigationBar’ disabled, but have the status bar in light. Thanks.

Push notifications is user wise? I have ecommerce website, it already integrated push notifications in website with one signal

When the user purchase the product it get notification, when product delivered He gets 1 more notification

Like this, it’s available?

And my app has the Pods for OneSignal and Firebase that you can use. You can use one of them. I suggest you use OneSignal. Just add it in the Pods file and put your onesignal key in the Config.plist file.

https://github.com/brommko/SuperView/blob/master/Podfile

Best regards

Nice Then it will work notification system userwise?

Hi Mr brommkollc nice work here.. eit about the update… i dont found this method to make the viewport initial scale1.0

how can i implement this in this new update.. Best Regards

Open ViewController.swift file and look for this method:

func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!) { // You can inject java script here if required as below // let javascript = “var meta = document.createElement(‘meta’);meta.setAttribute(‘name’, ‘viewport’);meta.setAttribute(‘content’, ‘width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no’);document.getElementsByTagName(‘head’)[0].appendChild(meta);”; // self.wkWebView.evaluateJavaScript(javascript, completionHandler: nil) } and replace with this:

func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!) { let javascript = “var meta = document.createElement(‘meta’);meta.setAttribute(‘name’, ‘viewport’);meta.setAttribute(‘content’, ‘width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no’);document.getElementsByTagName(‘head’)[0].appendChild(meta);”; self.wkWebView?.evaluateJavaScript(javascript, completionHandler: nil) } Best regards

not working.. still refreshing auto load every 5 seconds

Are you sure your site is not doing the reloading constantly for some reason? That 5 second part doesn’t exist in the native core.

Pre-purchase question: I use website creation service from SAAS, My Website is blocked X-FRAME-OPTIONS and SAAS Provider refuses to unblock X-FRAME-OPTIONS, can I use this to do application?

Hi,

Sorry, I have no idea what is that. My app is not using any frames. You can purchase and try, if you don’t like it, submit a refund request.

Best

Hello,

The swif source code unavailable to modify the files or add new functions in the Bridge JS (it’s not free like on Android because I bought the 2 sources for my project and I end up with a single customizable application). The plist provides very limited parameters and the code is pre-compiled. Suggestions ?

You can play with the bridge in this class:

https://github.com/brommko/SuperView/blob/master/Sources/SuperWebView%2BJSBridge.swift

If you want to send something to the webview, use this method:

self.bridge.post(action: “something”, parameters: [“type”: “and”])

Hello,

I have a web portal built with Laravel. Is it possible to hide my site header on your webview app?

Regards

Hi,

Yes, there is a userScript field in the Config.plist file that you can use. Whatever you put in it, it will get injected in the web view when the page loads. You can put a JS function to hide it.

Best regards

Hello,

For emphasis…

1. I want to hide my site header ONLY on your webview app. My site header will still be VISIBLE on web and mobile browsers. Is this possible?

2. I’m not a developer. Is it possible for me to hide the site header by MYSELF (i.e. will you guide me on how to do it)?

Kindly answer both questions accordingly.

Regards

Hi,

Yes but you will need help from a web developer, this is a native app it doesn’t have control over websites that use different toolbars.

If you need my help with customization, you need to purchase the app on superview.app

Best

I explain, if I buy the template where can I get content to make applications for the playstore or Appstore? I want to make a metitation application, do you sell content to make applications with that template? or in which case where can I get content to build an app for this template?

You need to purchase the app here and you will get the download link. This section is for iOS app. Then just start the process of creating the app. You will also get the documentation and a quick guide video tutorial how to start. When you app is ready, submit it on the store.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey