Good afternoon ,
I currently have a simple website made in Wordpress and would like to create a webview to encapsulate the same.
The goal is to look like an App, so that the client can download for both Android and IOS, install and in fact he will see the mobile version of the site.
I know how to make an App from scratch but I can not pass the site codes to it.
Can someone help me?
I searched so much on the internet but found nothing.
If you really just want to show the website in a web view, you can do that. For Android, you'll load the URL into a WebView. For iOS, you can use SFSafariViewController.
Official documentation:
WebView: https://developer.android.com/guide/webapps/webview
SFSafariViewController: https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller
Edit: You probably won't actually be able to publish that, though. Maybe on Android, but on iOS, they want your app to be more than a repackaged website. See section 4.2 of the App Store review guidelines. https://developer.apple.com/app-store/review/guidelines/
I would perhaps recommend instructing your client how to add your website as a shortcut to the home screen of their phone.
There is now a Wordpress plugin to make your site a PWA
https://wordpress.org/plugins/pwa/
Related
I've been looking into this for a while and i just want to know if some experienced devs can list the options i have.
Basically what I need is to convert a Wordpress website with all it's plugins to mobile Android/IOS application. No additions, just as is.
I know there are lot of plugins that offer to do that. however I'd like to know my options
The app is basically the same as the website with the exact same functions, just accessed via the app icon.
Is there an easy way to "show" a website on an app? like passing the link, or using the app as some sort of browser maybe?
What are my options?
The best what you can do is you can use PWA which will wrap your Wordpress website and create App launch icon easily. You have existing plugins even in Wordpress, that's what I've found:
https://wordpress.org/plugins/progressive-wp/
Another plus is that you can later add support for offline mode, notifications etc.
I'm a student and currently learning + working to develop mobile applications using JavaFX, gluon mobile Application. I'm able to build up distinct applications. But, I wanted to know if there is any possible way to open up a webpage in gluon mobile application. Like we can have it in android by android-studio. But I want to make it in gluon mobile app.
I have checked many of the samples, but none actually helped.
I want this because I have a website which has a mobile responsive theme. Instead of developing a separate app for that ( which is, of course, a very lengthy process), I want the webpage URL to open in-app. So that it will be more easy for me to set up rest of the things...
I have tried the rest, gluon connect settings etc. I have read the docs as well. But couldn't find anything related to that. Or maybe I've missed.. I'll be glad to get support regarding this question.
Any possible help will be appreciated.
Well, as answered in comments by Jose Pereda,
the WebView worked very well!
Sample Code:
//javafx class
...
WebView myWebView = new WebView();
WebEngine web = myWebView.getEngine();
web.load("https://yoururl.com");
....
docs can be found here: WebView Javafx Docs
I need some help with connecting hte Clarifai API into my android app. It's for a uni project where we tests different image recognition softwares. All it needs to do is take a picture on the phone and then run recognition on the pituces (which will be buildings).
I have no idea how to do this which is why i'm throwing this hail mary in the hope that someone would help me. I've put what i have in a drive here: https://drive.google.com/drive/folders/1LH79C0JtpBBpAMdKqNjKfYfj3KTvLgAh?usp=sharing
How can I solve this?
To use the Clarifai API on Android, you should use the Clarifai API Java client. Alternatively, if you wish not to install the library, you can do REST and execute HTTP requests directly using JSON. See the developer's guide for examples.
Note: There's also an Android SDK in works, which is beta at the time of this writing. See here on how to join the beta program.
Helle everyone,
I'm wondering if there is a possible way to share a text On my Facebook profile, even while using the codenameone simulator.
I did my researchs but all what I find is the share using the "ShareButton" component which only works when you launch the app with an actual device.
Greetings.
The share button doesn't really know about facebook. It places the text into a special OS hook which offers you venues where to share that data. That's great because that means it can work for other social networks seamlessly and it uses the native OS to do the posting. Zero setup.
Desktops don't have an API like that. If you want to explicitly share to facebook you can just do something like this which will launch the browser:
Display.getInstance().execute("https://www.facebook.com/sharer/sharer.php?u=" + Util.encodeUrl(textToShare));
I have developed an Android game that integrates facebook SDK for checking if one has liked and sharing results.
I heard from my mate that he had problem that made him unable to use the like for reward feature on my app, so I decided to install facebook app myself to check out the problem.
For some reason if I am trying to access the fb api reading data from URL "https://api.facebook.com/method/pages.isFan?format=json&access_token=ACCESS_TOKEN&page_id=PAGE_ID" it opens up facebook app on Android which only flashes and then turns off.. How can I avoid this or is there better way to check if one has liked my page in order to give him reward?
I haven't used the Facebook API, but the Facebook app is probably opening because it's listening for broadcast Intents to "api.facebook.com". You could explicitly send the intent to a browser package instead, but this isn't a good solution as there are many browsers.
I would try to do a HTTPS request using a Loader to fetch and parse the json. Have you tried this yet?
I can't paste any code right now, sorry.
From your comment to above Answer , Glad to know that you solved your problem,
Here is the answer for your Question
is there better way to check if one has liked my page
You can surely use FQL - Facebook Query Language to do this, given under the developer documentation in Facebook site.
There are Two different table
1.Page - where you can get all the detail about the page
2.Page_Fan - which you can use to know the fan-id for the page