Try ERPNext Buy Support Partners Foundation

Ionic Mobile App connected to ERPNext as backend

source : https://gitlab.com/castlecraft/frappe-mobile-starter

Example Retrieves user profile using token to prove API calls are made.

  • Uses frappe’s OAuth2 for authorization
  • Seamless session refresh with refresh token (for offline abilities)
  • Uses Ionic/Angular
  • Uses native http calls instead of cordova/browser calls to circumvent CORS
  • Minimum Unit tests and E2E tests to ensure API functionality and upgrades

Checkout README for more details

Note: Promises not entertained, only Observables :wink:

Screenshots :

Home Page without login

Sidebar login

Login InAppBrowser

Home Page with profile

Sidebar Logout

10 Likes

Tried it out -

Im getting 417 (Expectation Failed) status from the server.
Any idea whats going on?

Sorry my bad its working now forgot to add social login key for frappe provider.

Everything seems to work but there are a bunch of errors in the console on login and logout -

navigator.splashscreen is not available in browser

That error can be ignored.

navigator.splashscreen.show() will work in cordova

edlt: fixed the errors

Use this app as starter. Do change the storage to something better in production.

Can you please share the frappe provider settings? Im getting the same 417 error from server.
Thank you

Add a social login key for frappe provider
Do not enable it.

forgot to add social login key for frappe provider.

https://frappe.io/docs/user/en/guides/integration/how_to_set_up_oauth#add-primary-server

1 Like