Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

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.

Device id change in pk

Featured Replies

Hi Everyone, hope you are all fine..


We have set up our database and seem to sync fine from a ios device.

When the fresh file was downloaded to ios device.... when a new record was created the device id was displayed/identified as: 1.001..

The second record was created from ios device and the record id was displayed/identified as: 1.002 ..

 

We then developed/changed the main file on the server and re-distributed the file from there to the ios device again...

when creating the next record from the ios device, the record id is: 2.003.

 

The question is, why did the device id change from "1" to "2"?  Is this normal?

The problem we foresee is, if we continue developing and re-distributing the updated file, soon the device id will be 100 or even 1000....

 

Hupe my question is clear...

Thanks in advance 

 

Izan

This is normal. Every time a new offline file is synced for the first time, it gets a new unique and sequential database ID. Since these are unique, it's fine to combine them with a serial number like you're doing to generate a new primary key.

I don't see why it's a problem for the device IDs to be 100, 1000, or 50000. If you want shorter numbers, you might want to look into the writeback feature of MirrorSync:

http://docs.360works.com/index.php/MirrorSync_advanced_topics#Write-back_values_for_user-visible_numbers

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

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.