לוחות מודעות לוחות מודעות

חזרה

RE: Region detection outside of an LMS

מתג
Region detection outside of an LMS
תשובה
18:28 10/12/21
I'm building a module that will live outside of an LMS and would like to implemet some form of regional IP detection. Basically set a varibable to reflect US or EU during the inital page load. There is no user login and I would prefer to not have this as a user selection, they already had to pass a few logins even to get to this... groan.... Possible?
0 (0 הצבעות)

RE: Region detection outside of an LMS
תשובה
19:13 10/12/21 כתגובה ל-Ry Landry
Hello Ry,
We'll have to check on this and get back to you. Do you know of a method of detecting region already (outside of SmartBuilder)? Is the hosting environment already aware of the region? It seems there are two parts to this:
  1. Detect region
  2. Inform SmartBuilder
#2 should be easy once you figure out #1.

If the hosting environment is aware of the region, when it launches the lesson, it can pass along a parameter, like so: https://example.com/lesson/index.html?region=us and SB can get that "region" launch parameter.

If that's not an option, then you might be able to find some 3rd-party IP detection service (for example - https://ip2location.com/ ), and then getting it to talk to SB should be fairly easy.

Let us know what you're working with, and we can go from there!
0 (0 הצבעות)