Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New bridge method to register user in Datamob SDK #174

Open
DevPabloGarcia opened this issue Nov 19, 2024 · 1 comment · May be fixed by #177
Open

New bridge method to register user in Datamob SDK #174

DevPabloGarcia opened this issue Nov 19, 2024 · 1 comment · May be fixed by #177
Assignees

Comments

@DevPabloGarcia
Copy link

DevPabloGarcia commented Nov 19, 2024

Message type: REGISTER_DATAMOB_USER

Originator: web

Description

The application that implements the Datamob should have an user registered. This SDK provide a method to make this register.

This data must be provided at the time of registration, as parameters for the Register method.

Differences between iOS/Android (if any)

N/A

Payload definition

Request Payload

{
    phoneNumber: string; // The user phone number
    tokenPassword: string; // When registering the device, datamob generate an accessKey that is recorded in the Datamob device registry. By combining this attribute with a hash that we keep in a password vault, generate this token.
}

Examples:

{
    "type": "REGISTER_DATAMOB_USER",
    "id": "id", 
    "payload": {
        "phoneNumber": "601234567",
        "tokenPassword": "token_password"
    }
}

Response Payload

{
    success: boolean;
}

Examples:

{
    "type": "REGISTER_DATAMOB_USER",
    "id": "id", 
    "payload": { "success": true }
}

Possible error cases

N/A -> The SDK function could reach an exception, this is captured in the app an send it as "success" : "false"

@DevPabloGarcia DevPabloGarcia changed the title New method to register user in Datamob SDK New bridge method to register user in Datamob SDK Nov 25, 2024
@atabel
Copy link
Collaborator

atabel commented Nov 27, 2024

WEB jira ticket to implement this: https://jira.tid.es/browse/WEB-2112

@atabel atabel linked a pull request Nov 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants