React Native Custom Implementation

Hey, I'm planning to integrate novu with react native. I need to handle Novu websocket events because we don't have any support for it. I can handle web socket events but what is the entire process for securing a web socket connection? If anyone guide me on how to create a secure web socket connection with Novu using react native?
5 Replies
Ask Inkeep
Ask Inkeep7mo ago
Hi @jaykaneriya, I'm an AI assistant for Novu. While a team member reviews this question, I'll look through relevant sources and see if I can provide suggestions. Please tag @Ask Inkeep with any follow-up questions. ----------------------------- While I generate an answer, here are some sources that might be helpful: * Step Conditions * Deploy with Docker * Run Novu in local machine * API Overview -----------------------------
Ask Inkeep
Ask Inkeep7mo ago
Answer For securing a WebSocket connection with Novu in a React Native environment, you can utilize the security features provided by Novu, such as HMAC (Hash-based Message Authentication Code) for ensuring the integrity and authenticity of messages. When setting up your WebSocket connection, ensure you're applying the appropriate security measures as recommended by Novu. For instance, you might consider using nv-hmac-256 header for securing your webhooks, which is a concept closely related to securing WebSocket connections by ensuring that the data exchanged is authenticated and authorized (1) . While the direct implementation details specific to React Native are not provided in the available documentation, the concept remains similar across platforms. The nv-hmac-256 header contains an HMAC hash that is calculated based on your API Key and Environment Id, which helps in protecting against unauthorized access and ensuring that the communication is secured. For a React Native implementation, you might have to adapt this approach to fit the React Native networking and storage capabilities, perhaps by utilizing secure storage options available in React Native for storing sensitive information like API Keys and implementing similar security measures for your WebSocket connections. Remember, the WebSocket URL and the approach to handling WebSocket events securely should align with Novu's security practices and recommendations to ensure that the connection is not only efficient but also secure.
Pawan Jain
Pawan Jain7mo ago
@jaykaneriya Could you please share more on how you want to connect to our webscoket api I can handle web socket events but what is the entire process for securing a web socket connection?
jaykaneriya
jaykaneriya7mo ago
@Pawan Jain I just want to implement in app notification that we have in react. I have a project in react native and I want a guide how can I integrate novu in app notification inside it
Tomer Barnea
Tomer Barnea7mo ago
@sokratis @Pawan Jain please take a look
Want results from more Discord servers?
Add your server