cordova


Meteor Cordova: How to trick offline meteor cordova app to think it is logged in by using user document from localstorage


I have a meteor electron/cordova app that has user accounts.
I am familiar with this package meteor ground user. https://github.com/gwendall/meteor-ground-user
It seems to work for the cordova app, but fails with the electron build. With the electron build the app just gets stuck logging in. And Meteor.logginIn() is always true.
So I am hoping someone can advice me how to manually on startup, if Meteor.status().connected is false, check localstorage for last logged in user, and auto login the user in with that document and userId.
Summary:
Initial condition:
Uses User Accounts
User has previously used the app and logged in when connected
User is opening the app when offline
Meteor electron app https://github.com/wojtkowiak/meteor-desktop
Saves user document to localstorage https://github.com/gwendall/meteor-ground-user
Goal:
After opening the app offline, use the saved user document, and automatically make the client think the user is logged in with the offline user document.

Related Links

Cordova local notification plugin, click handler not working outside of the app
Hybrid Mobile App: Difference between PhoneGap and Cordova
cordova facebook login does not respond on actual device
Ionic / Cordova not working with Crosswalk
How to load cordova.js from a remote website?
ionic-native-transitions not working, no animation
Phonegap build online - iOS ATS configuration
How to run cordova build with -Xlint:deprecation
Phonegap - Adding header to WebView - jQuery Mobile
Phonegap Build InAppBrowser for cli-5.2.0
How to prevent landscape orientation in phonegap(html)?
vs2015 template for cordova - ios simulator
Ionic: Impelement Diagnostic Plugin (no ngCordova Plugin)
CLLocationManager does not have allowsBackgroundLocationUpdates member variable
Adding cordova bluetooth to meteor project
Ionic run does nothing

Categories

HOME
logic
ruby-on-rails-4
powershell-v4.0
masonry
junit
analytics
web-crawler
attributes
datatable
dropzone.js
speech-recognition
graph-algorithm
http-headers
url-rewriting
ieee-754
bpm
log4net
spring-aop
watchkit
video.js
emu8086
trackjs
prestashop-1.6
bootstrap-select
packet-capture
filepicker.io
ractivejs
webcam
python-tesseract
vim-syntax-highlighting
required
get-eventlog
angular-daterangepicker
umbraco-mvc
basic4android
apache-hive
toml
powerdns
uisearchbar
envelope
data-storage
homescreen
moa
grayscale
retrieve-and-rank
maximo-anywhere
allegro5
mypy
equation-solving
knockout-validation
google-url-shortener
libtool
rtai
outlook-2016
local-variables
type-systems
jwrapper
dex2oat
pxe
antivirus-integration
django-class-based-views
user-mode-linux
simplify
bitcount
scrapyd
irs
lg
argo
singularitygs
avm2
elmah.mvc
window-position
smslib
drilldown
puphpet
zooming
image-manipulation
navigationbar
function-prototypes
mooc
sqloledb
swift-protocols
aglio
orca
nxt-python
apparmor
android-x86
contactscontract
harfbuzz
gideros
fold
asp.net-compiler
windmill
opengl-es-1.1
pmp
operational-transform
happstack
nsformatter
nspasteboard
flotr
ubuntu-9.10
bootclasspath
xmlnodelist
showmodaldialog
installshield-2008
astoria

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App