Embed Origin by Corvus
Launch Origin by Corvus from a button selection
The most common way of integrating Origin by Corvus into another application is via a link or a button that brings up Origin by Corvus in a new browser window or tab, with a link to a specific Origin by Corvus channel to begin discussion.
Optionally, single-sign-on can be added to make the experience seamless.
Origin by Corvus launch button example in HTML
Save the below HTML code in a file called origin-button-example.html then open the file in a browser as an example.
<script>
var myWindow = null;
function openMMWindow() {
myWindow = window.open("https://community.origin.com/core/channels/developer", "Origin by Corvus", "top=0,left=0,width=400,height=600,status=no,toolbar=no,location=no,menubar=no,titlebar=no");
}
function closeMMWindow() {
if (myWindow) {
myWindow.close();
}
}
</script>
<html>
<br/>
<br/>
<button onclick="openMMWindow()">Open Developer Channel</button>
<br/>
<br/>
<button onclick="closeMMWindow()">Close Developer Channel</button>
<br/>
<br/>
</html>
Embed Origin by Corvus in web apps using an <iframe>
Any web application embedded into another using an <iframe> is at risk of security exploits, since the outer application intercepts all user input into the embedded application, an exploit known as Click-Jacking. By default, Origin by Corvus disables embedding. If you choose to embed Origin by Corvus we highly recommend it is done only on a private network that you control.
See this recipe for details.
Embed Origin by Corvus in mobile apps
The open source mobile applications can serve as a guide or starter code to embed Origin by Corvus in mobile applications. The Origin by Corvus Javascript Driver is used to connect with the Origin by Corvus server and product the interactivity for these applications.
The mobile applications also provide full source code for push notifications.