question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getAllItems() return value inconsistent on different platforms

See original GitHub issue

Thanks for this library! It’s been super-helpful for us.

We noticed that the getAllItems() function resolves the promise with different data types on iOS vs Android.

On iOS, we get back an array that contains another array. The inner array has objects with the keys service, key, and value:

[
  [
    { service: 'app', key: 'foo', value: 'bar' },
    { service: 'app', key: 'baz', value: 'quux' }
  ]
]

On Android, we get back an object that just has keys and values:

{
  foo: 'bar',
  baz: 'quux'
}

This inconsistency makes it difficult to use the results in a cross-platform way.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:12
  • Comments:22 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
m-uetacommented, Jul 6, 2022

The issue still exists in v6.0.0-alpha.9.

For now, I decided not to use getAllItems.

1reaction
mCodexcommented, Nov 16, 2020

Hi guys 👋

Thanks for the report. There were no reason regressing this issue. In fact, it may have happend when I merged the keystore branch within the master branch, because the keystore branch had many differences in android’s files and this fix wasn’t included there.

So, we should only open a new PR for that using the master branch again. I may have do this later, however feel free doing that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inconsistent return value Pylint - python - Stack Overflow
I have used pylint to check my code and I am receiving the following suggestion. 'Either all return statements in ...
Read more >
magento 1.7 - Get custom attribute value in Observer
I need to get the list of items in the order and get a custom attribute (the type is text). So far I...
Read more >
Frame lose metadata on reloading - Miro Community
Hello,For a few weeks now, the Frames have not stored metadata when the board is reloaded. Is an update planned at this level, ......
Read more >
Upgrade Notes | Customer's Canvas Dev
When some API elements become inconsistent and inconvenient, ... snapLines{type}CheckboxEnabled ... let productModel = await editor.eval(() => { return ...
Read more >
Export SharePoint List Items to CSV using PowerShell
Can this be applied to export data from the Microsoft 365 platform – for example ... Here is how: PowerShell to Get All...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found