Aller au contenu
View in the app

A better way to browse. Learn more.

Forum de Frandroid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Accès à une bdd externe avec CORDOVA

Featured Replies

Posté(e)

Bonjour,

 

Je développe actuellement une appli web avec Cordova (Phonegap) et je souhaite me connecter à un serveur sql. Je dispose d'un serveur sql avec un nom de serveur, un nom d'utilisateur et un mdp. Cependant je ne sais pas comment me connecter à ce serveur (sans utiliser le PHP car il n'est pas géré par cordova) . Avez-vous des idées ou des conseils ? Même sans utiliser mon serveur, ma priorité est d'héberger mes données dans une bdd accessible pour tous les utilisateurs.

 

Merci par avance.

  • 4 months later...
Posté(e)

Salut, 

 

vu qu'il n'y pas de plugin MySql pour cordova / phonegap, il faut que tu appelles un script php(ou autre, c'est selon ce que propose ton serveur) via Ajax pour envoyer / recevoir des données. 

 

Tu peux aussi stocker les données en local afin d'éviter de récupérer le contenu nécessaire à chaque fois. Il y a un plugin SqLite pour ça

Rejoignez la conversation

Vous pouvez poster maintenant et vous enregistrez plus tard. Si vous avez un compte, connectez-vous maintenant pour poster.

Invité
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Répondre à ce sujet…

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.