106
Views
10
Comments
Solved
[Get Device Information Sample] How can I get the device information in my web application
get-device-information-sample
Mobile icon
Forge asset by assif_tiger
Application Type
Mobile, Reactive
Service Studio Version
11.54.43 (Build 63110)

Hello All

Is there any way I can fetch these device information (like UUID, Model etc.) in my other web application. I just wanted to get the any device information in my web application who installed the mobile application. 

Any help will be appreciated. Thanks

Prince Kumar

2019-09-30 07-35-56
Aurelio Junior
Solution

You can use the very component you posted under (Get Device Information Sample). It is a sample app that shows how to use a plugin to get the device info.

What I would do is to create a separate application/module with the database entities and respective CRUD actions to store this data. You can then reference these entities/actions in all the apps that need to consume it. So in your case, that would be the mobile app that needs to consume the CRUD actions to save the data, and the web app that needs to consume the entities to display the data.

2019-09-30 07-35-56
Aurelio Junior

Hello,

It's not very clear what is it exactly that you're trying to do, but it looks like you want to gather the device information from devices where your mobile app was installed, and then show this information in a different web application.

Assuming that this is correct, what you have to do is use the plugin to gather the info and then store it in a database entity. Your web application can then get the data from this entity to display it.

2024-06-24 04-49-49
Princi

Thanks @Aurelio Junior for the quick response. You got it right. 

Which plugin I can use to gather the device info? 
Or is there any demo/sample available which I can refer for save that data into database entity?
Do I need to save the data into my web application entity? 

 

2019-09-30 07-35-56
Aurelio Junior
Solution

You can use the very component you posted under (Get Device Information Sample). It is a sample app that shows how to use a plugin to get the device info.

What I would do is to create a separate application/module with the database entities and respective CRUD actions to store this data. You can then reference these entities/actions in all the apps that need to consume it. So in your case, that would be the mobile app that needs to consume the CRUD actions to save the data, and the web app that needs to consume the entities to display the data.

2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Yes. You need to create an Entity which contains attributes you are capturing.

Example;

I have added "UserId" just to know that details you are capturing for which user.

Its up to your requirement.


Regards,

Wasimkhan S

2024-06-24 04-49-49
Princi

Thanks @Wasim Khan Do I need to create this entity into my reactive application?

2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

You need to have core module and there you need to create an Entity where you can consume this entity for your mobile and reactive application.


Regards,

Wasimkhan S

2019-09-30 07-35-56
Aurelio Junior

You can create this entity in any application you want. However, as I explained in my previous reply, I think it would make sense to create a new application specifically for this, since that would allow you to easily consume the entity and actions from any other applications in your factory, without the risk of introducing architecture issues or violations.

2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

This component is for Mobile application. you cannot refer this in Reactive application.


Regards,

Wasimkhan S

2019-09-30 07-35-56
Aurelio Junior

Please carefully read the previous replies in this thread again, because it's clear you're not fully understanding what we're saying. You don't have to call the plugin actions in your web application, only in your mobile application.

2024-06-24 04-49-49
Princi

Thanks @Aurelio Junior I read it again and got your point. Let me try this once. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.