I am developing a hybrid mobile app. I want to display notification in my application top right corner. I am using html + angularjs - front end and for backend I am using spring rest web service.
I am using cordova to just convert my frontend to native code.
Suggest me how to implement notification functionality in my frontend & backend
Note: I cannot use cordova for development. Because I cannot install it in all developers system. Only one dedicated system available with cordova installed. I can only use it for converting my html page to native
can you try this for notification alert link
Related
I have a web app developed using..(PHP,MYSQL,HTML,CSS,JS,AJAX,Datatables, bootstrapjs)
Now, I want to make a desktop version of the same app, and I came across electronjs.
The problem is I dont know whether ELECTRONJS will support all my requirements.
A breif of my requirements:
My app is responsive using datatables.net library including EDITOR for displaying the data .
the datatable plugin requires ajax calls to some API (Which I developed with PHP and hosted on a server)..
but now I want to even do all the DB Operations with electronjs so that my app can work offline.
I am not sure if I can do that with electron
- calling an API (created by same app) from HTML/frontJS
- the API Returns Json data
- the Front JS displays that data on front.
Kindly let me know if this can be done with electronjs,
Well, basically yes. You can build a desktop app like this.
But you wont be able to run it offline if it depends on a server sided API. If you can rewrite your backend Code in JavaScript and use a SQLite DB instead of a MySQL you can run this as electron App.
Keep in mind that your business logic in the frontend can always be abused because it’s not hidden from the user.
FYI: Electron only runs a browser inside it’s own App container. So there is actually no crucial difference between Browser or electron App.
I have to create a application with 1). a webinterface and 2). an ios/android app. I will use Laravel as backend framework.
Now I can use Laravel for the webinterface and the API, and Ionic for the app (that communicates with the Laravel API).
The "problem" is: I have to create 2 webinterfaces... (the Laravel online webinterface AND the Ionic webinterface (= offline in a ios/android WebView)).
Thats why my question is: can I run Ionic (or another alternative) as frontend framework in my Laravel? So I can run this Ionic interface in my app webview? I need the same functionalities, like camera, GPS, push, etc. as the "normal" Ionic.
Or is there an alternative with the same look and feel as Ionic, but 100% online? So I can run my webapplication in a WebView container.
I wonna start to develop an hybrid app for an application which has a instant messages as core, besides some other realtime feature.
I was having a look to Cordova and ionic. Are these technology the right election?
Is there any module or instant messages project which I can use instead to write a new one?
have a look at
``Firebase from google
They even have a fully working chat application with source code
working demo demo
Con:- Your app is tied to google firebase infrastructure
I am in big dilemma for last few days while studying paypal API for creating an HTML5 based hybrid app that needs to use paypal api for carrying out some transactions.
What I need is I want to use some Paypal API in HTML5 based mobile app, that will finally get bundled into some native app, say for example .apk files.
The problem is :
I have not found a single link that explains that if the paypal provides any api for hybrid app.
I have read their new buttons, name value api, etc. Will any of these will work in my current application when they get deployed as an .apk for android? The thing that makes me worry is that paypal needs redirectURL, so what it will do incase of single page app?
Any links or references are welcome!
I would highly suggest you try Cordova for your App. It does HTML5 in an app format and works very well.
I don't know that you would want to make API calls but your HTML buttons would definitely work. Paypal also has a plugin that would work as well (Cordova is also called Phonegap).
PhoneGap/Cordova will be my recommendation for any hybrid mobile apps.
PayPal has an official plugin for PhoneGap with Android SDK.
Refer https://github.com/paypal/PayPal-Android-SDK-PhoneGap
I'm building an application on HTML5 + Jquery and REST services at back-end . This application is meant for Desktop users and mobile users. So we are building the mobile version using phonegap. this application is a secure application and needs login screen. but now am in fix how I can achieve this.
1. If i Move the application to ASP.Net MVC then I can't create build using phonegap.
2. For phonegap i found http://www.raymondcamden.com/index.cfm/2011/11/10/Example-of-serverbased-login-with-PhoneGap but i think this is not suitable solution for desktop users
You can secure the server side using the authentication technology of your choice and then make your AJAX calls to the rest services pass along the credentials.
For example, if you wanted to write your service using ASP.NET MVC, you could protect that using something as simple as HTTP Basic Auth and then pass along a user/pass string in your request.
To achieve the login screen, you can write a dummy controller method which your login screen can call just to check if the authentication is working.
If you want a sample ASP.NET MVC backend with a PhoneGap front-end using jQuery, then I have some sample code up on GitHub and a blog describing building the application