Git Product home page Git Product logo

pushiomanager_android's People

Contributors

casev7 avatar graphex avatar hiroprot avatar jordanpushio avatar mikepushio avatar neerhaj avatar

Watchers

 avatar  avatar

pushiomanager_android's Issues

Database upgrade issue

PushIOManager database upgrade issue

In version 6.38.1, push is is supported for message center cache
It added two new tables(InboxMessage & FormLink) to support this feature. This feature is great, but what a pity, they forget to do database migration.

If you upgrade your sdk version to this new version, you can't fetch any messages from message center because no data in the two tables.

Here are the best way to solve this problem:

  1. Upgrade their database from version 1 to version 2
  2. Add two lines following to public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) method in PIODBStore
db.execSQL("CREATE TABLE InboxMessage (id TEXT PRIMARY KEY NOT NULL, subject TEXT, message TEXT, icon_url TEXT, message_center_name TEXT, deeplink_url TEXT, richmessage_html TEXT, richmessage_url TEXT, sent_ts TEXT, expiry_ts TEXT, user_id TEXT, device_id TEXT, expiry_datetime TEXT, fetch_datetime TEXT)");
db.execSQL("CREATE TABLE FormLink (messageID TEXT PRIMARY KEY REFERENCES InboxMessage (id), form_link TEXT, expiry_datetime TEXT)");

What's more

If you are using 6.38.1 right now, here are some hack code to do this

Hack code

You need to call

PushIODBStoreRepo(context).createCacheTables()

After you registerApp in your database

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.